From 29ac71c4b412d10c1c2fcc1113e65bc5e225e6ee Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 31 May 2006 23:00:22 +0000 Subject: [PATCH] Update svn: r6834 --- gramps2/src/ReportBase/_ReportDialog.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/src/ReportBase/_ReportDialog.py b/gramps2/src/ReportBase/_ReportDialog.py index c5f15400d..5e77708ab 100644 --- a/gramps2/src/ReportBase/_ReportDialog.py +++ b/gramps2/src/ReportBase/_ReportDialog.py @@ -618,8 +618,11 @@ def report(dbstate,uistate,person,report_class,options_class, from _DrawReportDialog import DrawReportDialog dialog_class = DrawReportDialog elif category == CATEGORY_BOOK: - report_class(dbstate,uistate,person) - return + try: + report_class(dbstate,uistate,person) + except Errors.WindowActiveError: + pass + return elif category in (CATEGORY_VIEW,CATEGORY_CODE,CATEGORY_WEB): report_class(dbstate.db,person) return