From e82c2c208431fc644b5c87849f6193a48b4567ab Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Mon, 2 Jan 2006 16:00:05 +0000 Subject: [PATCH] * src/ViewManager.py (post_load): Request interface rebuild after upgrading the database svn: r5654 --- gramps2/ChangeLog | 1 + gramps2/src/ViewManager.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index f5037ee96..2f5dadba9 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,6 @@ 2006-01-02 Martin Hawlisch * src/PedView.py: Show marriage data + * src/ViewManager.py (post_load): Request interface rebuild after upgrading the database 2006-01-01 Eero Tamminen * doc/gramps.1.in: nroff and a couple of typo fixes diff --git a/gramps2/src/ViewManager.py b/gramps2/src/ViewManager.py index e4ae8da51..32e9bb859 100644 --- a/gramps2/src/ViewManager.py +++ b/gramps2/src/ViewManager.py @@ -714,7 +714,6 @@ class ViewManager: return self.post_load(name,callback) def post_load(self,name,callback=None): - self.state.db.request_rebuild() if not self.state.db.version_supported(): raise Errors.FileVersionError( "The database version is not supported by this " @@ -739,6 +738,8 @@ class ViewManager: callback(_('Upgrading database...')) self.state.db.gramps_upgrade() + self.state.db.request_rebuild() + GrampsKeys.save_last_file(name) self.relationship = self.RelClass(self.state.db)