From f22c6835a2e19689aeb052d2f5a4cb3818d37d0b Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 27 Dec 2008 17:38:40 +0000 Subject: [PATCH] Data entry gramplet edit button points to parents family, if active person is not a spouse of a family svn: r11525 --- src/plugins/DefaultGramplets.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/DefaultGramplets.py index 4cb8d502d..c736e897f 100644 --- a/src/plugins/DefaultGramplets.py +++ b/src/plugins/DefaultGramplets.py @@ -1318,6 +1318,12 @@ class DataEntryGramplet(Gramplet): 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: + 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: self.clear_data_edit(None) self.de_widgets["Active person:Edit person"].hide()