handle database switches
svn: r6086
This commit is contained in:
parent
f036c5a44b
commit
51c1f0730a
@ -38,7 +38,7 @@ the database objects. Read the comments in _GrampsDBCallback.py for more
|
||||
information.
|
||||
"""
|
||||
|
||||
from _GrampsDbBase import DbState
|
||||
from _GrampsDbBase import DbState, GrampsDbBase
|
||||
|
||||
from _GrampsDbFactories import \
|
||||
gramps_db_factory, \
|
||||
|
@ -736,6 +736,13 @@ class ViewManager:
|
||||
except:
|
||||
print "could not change directory"
|
||||
|
||||
|
||||
# emit the database change signal so the that models do not
|
||||
# attempt to update the screen while we are loading the
|
||||
# new data
|
||||
|
||||
self.state.emit('database-changed',(GrampsDb.GrampsDbBase(),))
|
||||
|
||||
try:
|
||||
if self.load_database(filename,callback,mode=mode):
|
||||
if filename[-1] == '/':
|
||||
|
Loading…
Reference in New Issue
Block a user