From fc182430405cd192342bad1f9765f035f6cb3c8d Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 11 Mar 2010 17:58:51 +0000 Subject: [PATCH] Rebuild pedigree view if flagged as dirty svn: r14758 --- src/plugins/view/pedigreeview.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/view/pedigreeview.py b/src/plugins/view/pedigreeview.py index 43a47c28e..7b52e7de9 100644 --- a/src/plugins/view/pedigreeview.py +++ b/src/plugins/view/pedigreeview.py @@ -696,6 +696,9 @@ class PedigreeView(NavigationView): """Called when the page changes.""" NavigationView.change_page(self) self.uistate.clear_filter_results() + if self.dirty: + self.rebuild_trees(self.get_active()) + self.dirty = False def get_stock(self): """ @@ -859,12 +862,10 @@ class PedigreeView(NavigationView): def person_rebuild(self, dummy=None): """Callback function for signals of change database.""" + self.format_helper.clear_cache() + self.dirty = True if self.active: - self.format_helper.clear_cache() - self.dirty = True self.rebuild_trees(self.get_active()) - else: - self.dirty = True def rebuild_trees(self, person_handle): """