From 2af34cfb236cc9cd02034cee3a28e5a7909584ec Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Wed, 4 Jan 2006 18:00:02 +0000 Subject: [PATCH] * src/FamilyView.py: Handle active person == None svn: r5668 --- gramps2/ChangeLog | 3 +++ gramps2/src/FamilyView.py | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a29d7ce99..a22a87a7c 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/FamilyView.py b/gramps2/src/FamilyView.py index 73ac859dc..b2a1dda7a 100644 --- a/gramps2/src/FamilyView.py +++ b/gramps2/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()