* src/DataViews/_RelationView.py: clear all subelements on redraw

svn: r6907
This commit is contained in:
Don Allingham 2006-06-17 04:20:27 +00:00
parent 6de4daf8f0
commit 2ef0b6aaf5
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,5 @@
2006-06-16 Don Allingham <don@gramps-project.org>
* 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

View File

@ -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,7 +259,6 @@ 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()
@ -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)