From 1535b502f7c5cf8a9d225b23a0ef69b99a4441a8 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 24 Feb 2007 01:18:34 +0000 Subject: [PATCH] 2007-02-23 Alex Roitman * src/Editors/_EditFamily.py (edit_child_button_clicked): Catch open window situation. svn: r8222 --- gramps2/ChangeLog | 4 ++++ gramps2/src/Editors/_EditFamily.py | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 4dcc258ec..6b5265d68 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2007-02-23 Alex Roitman + * src/Editors/_EditFamily.py (edit_child_button_clicked): Catch + open window situation. + 2007-02-22 Alex Roitman * src/docgen/PdfDoc.py (write_text): Close
tag. * src/GrampsDb/_GrampsBSDDB.py (reindex_reference_map): Typo. diff --git a/gramps2/src/Editors/_EditFamily.py b/gramps2/src/Editors/_EditFamily.py index 574a1775d..1c357973b 100644 --- a/gramps2/src/Editors/_EditFamily.py +++ b/gramps2/src/Editors/_EditFamily.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2006 Donald N. Allingham +# Copyright (C) 2000-2007 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -264,9 +264,12 @@ class ChildEmbedList(EmbeddedList): for ref in self.family.get_child_ref_list(): if ref.ref == handle: - p = self.dbstate.db.get_person_from_handle(handle) - EditPerson(self.dbstate, self.uistate, self.track, - p, self.child_ref_edited) + try: + p = self.dbstate.db.get_person_from_handle(handle) + EditPerson(self.dbstate, self.uistate, self.track, + p, self.child_ref_edited) + except Errors.WindowActiveError: + pass break def drag_data_received(self, widget, context, x, y, sel_data, info, time):