Data entry gramplet edit button points to parents family, if active person is not a spouse of a family

svn: r11525
This commit is contained in:
Doug Blank 2008-12-27 17:38:40 +00:00
parent c75a4566c8
commit f22c6835a2

View File

@ -1318,6 +1318,12 @@ class DataEntryGramplet(Gramplet):
self.dirty_family = self.dbstate.db.get_family_from_handle(family_list[0]) self.dirty_family = self.dbstate.db.get_family_from_handle(family_list[0])
self.de_widgets["Active person:Edit family"].show() self.de_widgets["Active person:Edit family"].show()
self.de_widgets["Active person:Edit family:Label"].show() self.de_widgets["Active person:Edit family:Label"].show()
else:
family_list = active_person.get_parent_family_handle_list()
if len(family_list) > 0:
self.dirty_family = self.dbstate.db.get_family_from_handle(family_list[0])
self.de_widgets["Active person:Edit family"].show()
self.de_widgets["Active person:Edit family:Label"].show()
else: else:
self.clear_data_edit(None) self.clear_data_edit(None)
self.de_widgets["Active person:Edit person"].hide() self.de_widgets["Active person:Edit person"].hide()