* src/ViewManager.py: block interface on autobackup (#856)

* src/DisplayState.py: block interface on autobackup


svn: r7998
This commit is contained in:
Don Allingham 2007-01-28 02:51:18 +00:00
parent b5aa6154b3
commit d54c69bec7
3 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,6 @@
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/DisplayModels/_BaseModel.py: handle None vs. 0
* src/Editors/_EditPerson.py (EditPerson._image_button_press): check

View File

@ -283,6 +283,9 @@ class DisplayState(GrampsDb.GrampsDBCallback):
# This call has been moved one level up,
# but this connection is still made!
# self.dbstate.connect('database-changed', self.db_changed)
def set_sensitive(self, state):
self.window.set_sensitive(state)
def db_changed(self, db):
from PluginUtils import _PluginMgr

View File

@ -487,6 +487,7 @@ class ViewManager:
self.uistate.push_message(self.state,_('Ready'))
def quit(self, *obj):
self.uistate.set_sensitive(False)
self.backup()
self.state.db.close()
(width, height) = self.window.get_size()