* src/DataViews/_PedigreeView.py: work around bug in database-changed signals

svn: r6681
This commit is contained in:
Martin Hawlisch 2006-05-16 14:57:17 +00:00
parent 620cae798d
commit 52c4d7e365
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
2006-05-16 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/DataViews/_PedigreeView.py: Add navigation-arrows to the tree
* src/DataViews/_PedigreeView.py: Add navigation-arrows to the tree;
work around bug in database-changed signals
2006-05-15 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsXMLDB.py: Use callback, call parent's

View File

@ -605,6 +605,10 @@ class PedigreeView(PageView.PersonNavView):
self.notebook.set_current_page(self.force_size-2)
def rebuild_trees(self,person_handle):
if self.db != self.dbstate.db:
print "UNRECOGNIZED DATABASES CHANGE DETECTED! TODO: Fix signals"
self.change_db(self.dbstate.db)
return
person = None
if person_handle:
person = self.dbstate.db.get_person_from_handle( person_handle)