* src/gramps_main.py (post_load): Upgrade even if no callback.

svn: r4127
This commit is contained in:
Alex Roitman 2005-03-07 13:49:14 +00:00
parent 7c702ed2d3
commit 734753c196
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2005-03-07 Alex Roitman <shura@alex.neuro.umn.edu>
* src/gramps_main.py (post_load): Upgrade even if no callback.
2005-03-06 Don Allingham <don@gramps-project.org>
* src/GrampsBSDDB.py: display upgrade messages to stdout

View File

@ -1584,8 +1584,9 @@ class Gramps:
self.db.set_researcher(owner)
self.setup_bookmarks()
if callback and self.db.need_upgrade():
callback(_('Upgrading database...'))
if self.db.need_upgrade():
if callback:
callback(_('Upgrading database...'))
self.db.upgrade()
GrampsKeys.save_last_file(name)