From 387f33c94ac4077c3cd81a0c303e2aac885e8cc5 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Tue, 16 May 2006 14:57:17 +0000 Subject: [PATCH] * src/DataViews/_PedigreeView.py: work around bug in database-changed signals svn: r6681 --- ChangeLog | 3 ++- src/DataViews/_PedigreeView.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f27bfedaf..09b25bdf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2006-05-16 Martin Hawlisch - * 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 * src/GrampsDb/_GrampsXMLDB.py: Use callback, call parent's diff --git a/src/DataViews/_PedigreeView.py b/src/DataViews/_PedigreeView.py index e271b7f91..31d169dec 100644 --- a/src/DataViews/_PedigreeView.py +++ b/src/DataViews/_PedigreeView.py @@ -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)