From 5f40a3e48b843749e14442892fc3273feec59f5c 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 --- gramps2/ChangeLog | 4 ++++ gramps2/src/DataViews/_RelationView.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 1fce19b08..6f7f0022d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/DataViews/_RelationView.py b/gramps2/src/DataViews/_RelationView.py index 4a631495c..b8124ae31 100644 --- a/gramps2/src/DataViews/_RelationView.py +++ b/gramps2/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)