diff --git a/ChangeLog b/ChangeLog index a29d7ce99..a22a87a7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-01-04 Martin Hawlisch + * src/FamilyView.py: Handle active person == None + 2006-01-04 Don Allingham * src/FamilyView.py: fix place == None problem diff --git a/src/FamilyView.py b/src/FamilyView.py index 73ac859dc..b2a1dda7a 100644 --- a/src/FamilyView.py +++ b/src/FamilyView.py @@ -85,8 +85,11 @@ class FamilyView(PageView.PageView): self.child.set_border_width(12) self.child.set_col_spacings(12) self.child.set_row_spacings(6) + self.vbox.pack_start(self.child,False) person = self.dbstate.db.get_person_from_handle(obj) + if not person: + return self.write_title(person) family_handle_list = person.get_parent_family_handle_list() @@ -101,8 +104,7 @@ class FamilyView(PageView.PageView): self.write_label(_('Family')) self.write_family(family_handle) - self.child.show() - self.vbox.pack_start(self.child,False) + self.child.show_all() def make_button(self,handle,icon,func): image = gtk.Image()