From 623d5d43e5ce292a7cd06e2bbdc7fd62ec950a9c Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 9 Mar 2010 22:40:07 +0000 Subject: [PATCH] 3687: Prevent multiple re-build of views when name format changed svn: r14725 --- src/gui/viewmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/viewmanager.py b/src/gui/viewmanager.py index dff53c3be..4adcc0c19 100644 --- a/src/gui/viewmanager.py +++ b/src/gui/viewmanager.py @@ -762,8 +762,6 @@ class ViewManager(CLIManager): """ try: GrampsPreferences(self.uistate, self.dbstate) - self._key = self.uistate.connect('nameformat-changed', - self.active_page.build_tree) except Errors.WindowActiveError: return @@ -972,6 +970,8 @@ class ViewManager(CLIManager): self.active_page.set_active() self.notebook.set_current_page(current_cat) self.notebook_cat[current_cat].set_current_page(current_cat_view) + self._key = self.uistate.connect('nameformat-changed', + self.active_page.build_tree) else: #not one single view loaded WarningDialog(