From 02e9064fc162ecde147eceb228573fc69d9ddbc3 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 4 Feb 2007 21:30:45 +0000 Subject: [PATCH] 2007-02-04 Don Allingham * src/DataViews/_RelationView.py: default Relationship buttons to insenstive. Setting an active person will reenable them. svn: r8053 --- ChangeLog | 4 ++++ src/DataViews/_RelationView.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1fce19b08..6f7f0022d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-02-04 Don Allingham + * src/DataViews/_RelationView.py: default Relationship buttons to insenstive. + Setting an active person will reenable them. + 2007-02-03 Brian Matherly * src/plugins/NarrativeWeb.py: fix 0000894: syntax error on Narrative web plugin diff --git a/src/DataViews/_RelationView.py b/src/DataViews/_RelationView.py index 4a631495c..b8124ae31 100644 --- a/src/DataViews/_RelationView.py +++ b/src/DataViews/_RelationView.py @@ -333,6 +333,7 @@ class RelationshipView(PageView.PersonNavView): self.show_siblings) self.order_action.set_sensitive(self.reorder_sensitive) + self.family_action.set_sensitive(False) def siblings_toggle(self, obj): self.show_siblings = obj.get_active() @@ -1010,6 +1011,8 @@ class RelationshipView(PageView.PersonNavView): from Editors import EditFamily family = RelLib.Family() person = self.dbstate.active + if not person: + return if person.gender == RelLib.Person.MALE: family.set_father_handle(person.handle)