4442: Add a Button to close the current database; retitle main window
This commit is contained in:
parent
ba6921c91d
commit
efe5323e1a
@ -164,7 +164,7 @@ class DbManager(CLIDbManager):
|
|||||||
CLIDbManager.__init__(self, dbstate)
|
CLIDbManager.__init__(self, dbstate)
|
||||||
self.glade = Glade(toplevel='dbmanager')
|
self.glade = Glade(toplevel='dbmanager')
|
||||||
self.top = self.glade.toplevel
|
self.top = self.glade.toplevel
|
||||||
|
self.parent = parent
|
||||||
if parent:
|
if parent:
|
||||||
self.top.set_transient_for(parent)
|
self.top.set_transient_for(parent)
|
||||||
|
|
||||||
@ -830,6 +830,8 @@ class DbManager(CLIDbManager):
|
|||||||
store.set_value(node, DSORT_COL, tval)
|
store.set_value(node, DSORT_COL, tval)
|
||||||
self.dbstate.no_database()
|
self.dbstate.no_database()
|
||||||
self.__update_buttons(self.selection)
|
self.__update_buttons(self.selection)
|
||||||
|
if self.parent:
|
||||||
|
self.parent.set_title("Gramps")
|
||||||
|
|
||||||
def __info_db(self, obj):
|
def __info_db(self, obj):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user