Rebuild pedigree view if flagged as dirty

svn: r14758
This commit is contained in:
Nick Hall 2010-03-11 17:58:51 +00:00
parent 2263d01498
commit fc18243040

View File

@ -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):
"""