From efe5323e1a6481b2403605dca3091b61717cb7d8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 3 May 2016 20:15:18 -0400 Subject: [PATCH] 4442: Add a Button to close the current database; retitle main window --- gramps/gui/dbman.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/gui/dbman.py b/gramps/gui/dbman.py index 9bae51bf7..a6b6a07cc 100644 --- a/gramps/gui/dbman.py +++ b/gramps/gui/dbman.py @@ -164,7 +164,7 @@ class DbManager(CLIDbManager): CLIDbManager.__init__(self, dbstate) self.glade = Glade(toplevel='dbmanager') self.top = self.glade.toplevel - + self.parent = parent if parent: self.top.set_transient_for(parent) @@ -830,6 +830,8 @@ class DbManager(CLIDbManager): store.set_value(node, DSORT_COL, tval) self.dbstate.no_database() self.__update_buttons(self.selection) + if self.parent: + self.parent.set_title("Gramps") def __info_db(self, obj): """