* src/DataViews/_MediaView.py (edit): Handle the exception.
svn: r6616
This commit is contained in:
parent
f724a1185b
commit
f3b4b14bc2
@ -1,4 +1,5 @@
|
|||||||
2006-05-10 Alex Roitman <shura@gramps-project.org>
|
2006-05-10 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/DataViews/_MediaView.py (edit): Handle the exception.
|
||||||
* src/plugins/BookReport.py (__init__): Fix url.
|
* src/plugins/BookReport.py (__init__): Fix url.
|
||||||
* src/plugins/ChangeTypes.py (run_tool): Disable/enable signals.
|
* src/plugins/ChangeTypes.py (run_tool): Disable/enable signals.
|
||||||
* src/plugins/ReorderIds.py (__init__): Disable/enable signals.
|
* src/plugins/ReorderIds.py (__init__): Disable/enable signals.
|
||||||
|
@ -38,7 +38,8 @@ import ImgManip
|
|||||||
import const
|
import const
|
||||||
import Utils
|
import Utils
|
||||||
import Bookmarks
|
import Bookmarks
|
||||||
|
from Editors import EditMedia
|
||||||
|
import Errors
|
||||||
from QuestionDialog import QuestionDialog, ErrorDialog
|
from QuestionDialog import QuestionDialog, ErrorDialog
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -197,8 +198,10 @@ class MediaView(PageView.ListView):
|
|||||||
return
|
return
|
||||||
|
|
||||||
obj = self.dbstate.db.get_object_from_handle(handle)
|
obj = self.dbstate.db.get_object_from_handle(handle)
|
||||||
from Editors import EditMedia
|
try:
|
||||||
EditMedia(self.dbstate,self.uistate, [], obj)
|
EditMedia(self.dbstate,self.uistate, [], obj)
|
||||||
|
except Errors.WindowActiveError:
|
||||||
|
pass
|
||||||
|
|
||||||
class DeleteMediaQuery:
|
class DeleteMediaQuery:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user