* 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 c7bd0b1e8b
commit 1056dd37e0
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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)

View File

@ -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()