* src/PedView.py (load_canvas): Catch bug of not existing family

svn: r4341
This commit is contained in:
Martin Hawlisch 2005-04-11 09:42:55 +00:00
parent c4018628ad
commit b6ba0b4b16
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2005-04-11 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/PedView.py (load_canvas): Catch bug of not existing family
2005-04-10 Alex Roitman <shura@gramps-project.org> 2005-04-10 Alex Roitman <shura@gramps-project.org>
* Release: Version 1.1.95 "When danger reared its ugly head, * Release: Version 1.1.95 "When danger reared its ugly head,
he bravely turned his tail and fled" released. he bravely turned his tail and fled" released.

View File

@ -281,6 +281,8 @@ class PedigreeView:
for family_handle in self.active_person.get_family_handle_list(): for family_handle in self.active_person.get_family_handle_list():
family = self.db.get_family_from_handle(family_handle) family = self.db.get_family_from_handle(family_handle)
if not family:
continue
if len(family.get_child_handle_list()) > 0: if len(family.get_child_handle_list()) > 0:
button,arrow = self.make_arrow_button(gtk.ARROW_LEFT, button,arrow = self.make_arrow_button(gtk.ARROW_LEFT,
self.on_show_child_menu) self.on_show_child_menu)