* src/FamilyView.py: Handle active person == None

svn: r5668
This commit is contained in:
Martin Hawlisch 2006-01-04 18:00:02 +00:00
parent b4106af051
commit 2af34cfb23
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2006-01-04 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/FamilyView.py: Handle active person == None
2006-01-04 Don Allingham <don@gramps-project.org>
* src/FamilyView.py: fix place == None problem

View File

@ -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()