* 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 85e38877b4
commit b017df054a
2 changed files with 6 additions and 2 deletions

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)