From b017df054ad859656137f7583942b1ebf51c81ea Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 7 Mar 2005 13:49:14 +0000 Subject: [PATCH] * src/gramps_main.py (post_load): Upgrade even if no callback. svn: r4127 --- gramps2/ChangeLog | 3 +++ gramps2/src/gramps_main.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 537485d0e..a9271abd5 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-03-07 Alex Roitman + * src/gramps_main.py (post_load): Upgrade even if no callback. + 2005-03-06 Don Allingham * src/GrampsBSDDB.py: display upgrade messages to stdout diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 13e9c9c5b..61a16875d 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -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)