* src/ViewManager.py: block interface on autobackup (#856)
* src/DisplayState.py: block interface on autobackup svn: r7998
This commit is contained in:
parent
b5aa6154b3
commit
d54c69bec7
@ -1,4 +1,6 @@
|
|||||||
2007-01-27 Don Allingham <don@gramps-project.org>
|
2007-01-27 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/ViewManager.py: block interface on autobackup (#856)
|
||||||
|
* src/DisplayState.py: block interface on autobackup
|
||||||
* src/Utils.py: handle missing/invalid encoding
|
* src/Utils.py: handle missing/invalid encoding
|
||||||
* src/DisplayModels/_BaseModel.py: handle None vs. 0
|
* src/DisplayModels/_BaseModel.py: handle None vs. 0
|
||||||
* src/Editors/_EditPerson.py (EditPerson._image_button_press): check
|
* src/Editors/_EditPerson.py (EditPerson._image_button_press): check
|
||||||
|
@ -284,6 +284,9 @@ class DisplayState(GrampsDb.GrampsDBCallback):
|
|||||||
# but this connection is still made!
|
# but this connection is still made!
|
||||||
# self.dbstate.connect('database-changed', self.db_changed)
|
# self.dbstate.connect('database-changed', self.db_changed)
|
||||||
|
|
||||||
|
def set_sensitive(self, state):
|
||||||
|
self.window.set_sensitive(state)
|
||||||
|
|
||||||
def db_changed(self, db):
|
def db_changed(self, db):
|
||||||
from PluginUtils import _PluginMgr
|
from PluginUtils import _PluginMgr
|
||||||
self.relationship = _PluginMgr.relationship_class(db)
|
self.relationship = _PluginMgr.relationship_class(db)
|
||||||
|
@ -487,6 +487,7 @@ class ViewManager:
|
|||||||
self.uistate.push_message(self.state,_('Ready'))
|
self.uistate.push_message(self.state,_('Ready'))
|
||||||
|
|
||||||
def quit(self, *obj):
|
def quit(self, *obj):
|
||||||
|
self.uistate.set_sensitive(False)
|
||||||
self.backup()
|
self.backup()
|
||||||
self.state.db.close()
|
self.state.db.close()
|
||||||
(width, height) = self.window.get_size()
|
(width, height) = self.window.get_size()
|
||||||
|
Loading…
Reference in New Issue
Block a user