From 009b4b5cfab3c012eb3a43a4c729cd9cf6b3e058 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 11 May 2006 00:33:17 +0000 Subject: [PATCH] * src/DataViews/_MediaView.py (edit): Handle the exception. svn: r6616 --- gramps2/ChangeLog | 1 + gramps2/src/DataViews/_MediaView.py | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d7a5288d2..3ec8be5b8 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-05-10 Alex Roitman + * 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. diff --git a/gramps2/src/DataViews/_MediaView.py b/gramps2/src/DataViews/_MediaView.py index 36f3a2c79..8e0e21786 100644 --- a/gramps2/src/DataViews/_MediaView.py +++ b/gramps2/src/DataViews/_MediaView.py @@ -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: