* src/DataViews/_MediaView.py (edit): Handle the exception.

svn: r6616
This commit is contained in:
Alex Roitman 2006-05-11 00:33:17 +00:00
parent f724a1185b
commit f3b4b14bc2
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,5 @@
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/ChangeTypes.py (run_tool): Disable/enable signals.
* src/plugins/ReorderIds.py (__init__): Disable/enable signals.

View File

@ -38,7 +38,8 @@ import ImgManip
import const
import Utils
import Bookmarks
from Editors import EditMedia
import Errors
from QuestionDialog import QuestionDialog, ErrorDialog
#-------------------------------------------------------------------------
@ -197,8 +198,10 @@ class MediaView(PageView.ListView):
return
obj = self.dbstate.db.get_object_from_handle(handle)
from Editors import EditMedia
EditMedia(self.dbstate,self.uistate, [], obj)
try:
EditMedia(self.dbstate,self.uistate, [], obj)
except Errors.WindowActiveError:
pass
class DeleteMediaQuery: