diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 1268d9ad0..49f2f8501 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-06-16 Don Allingham + * src/DataViews/_RelationView.py: clear all subelements on redraw * src/PageView.py: set dirty flag appropriately * src/DataViews/_MediaView.py: clear image if none is selected diff --git a/gramps2/src/DataViews/_RelationView.py b/gramps2/src/DataViews/_RelationView.py index 1fb73f358..99c0ebca8 100644 --- a/gramps2/src/DataViews/_RelationView.py +++ b/gramps2/src/DataViews/_RelationView.py @@ -249,7 +249,8 @@ class RelationshipView(PageView.PersonNavView): def change_db(self, db): self.connect_to_db(db) if self.child: - self.vbox.remove(self.child) + for old_child in self.vbox.get_children(): + self.vbox.remove(old_child) self.child = None self.dbstate.db.connect('family-update', self.redraw) self.dbstate.db.connect('family-add', self.redraw) @@ -258,9 +259,8 @@ class RelationshipView(PageView.PersonNavView): self.dbstate.db.connect('person-add', self.redraw) self.dbstate.db.connect('person-delete', self.redraw) self.bookmarks.update_bookmarks(db.get_bookmarks()) - if self.active: - self.bookmarks.redraw() - self.redraw() + self.bookmarks.redraw() + self.redraw() def get_name(self, handle, use_gender=False): if handle: @@ -275,6 +275,7 @@ class RelationshipView(PageView.PersonNavView): return (_(u"Unknown"), "") def redraw(self, *obj): + print self.dbstate.active if self.dbstate.active: self.handle_history(self.dbstate.active.handle) self.change_person(self.dbstate.active.handle)