From 40176eeaaf4a3dfc179e66a5ee1c9a1035309447 Mon Sep 17 00:00:00 2001 From: prculley Date: Tue, 7 Feb 2017 11:23:23 -0600 Subject: [PATCH] bug 9934; fix error when 'Manage Family Tree' is closed via ESC or the dialog close 'x' in top left --- gramps/gui/dbman.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/dbman.py b/gramps/gui/dbman.py index 6c93bc048..5c5516b30 100644 --- a/gramps/gui/dbman.py +++ b/gramps/gui/dbman.py @@ -484,7 +484,8 @@ class DbManager(CLIDbManager, ManagedWindow): else: del self.selection del self.name_renderer - self.close() + if value != Gtk.ResponseType.DELETE_EVENT: + self.close() return None def __ask_to_break_lock(self, store, node):