From 6283eca1e382c97fada411519285bb14bf15e68e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 21 Jan 2004 04:43:51 +0000 Subject: [PATCH] * src/PeopleView.py: correctly handle disabling report/tool buttons * src/gramps_main.py: correctly handle disabling report/tool buttons svn: r2683 --- gramps2/src/PeopleView.py | 5 ----- gramps2/src/gramps_main.py | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/gramps2/src/PeopleView.py b/gramps2/src/PeopleView.py index 248a3ad42..8a10e8fcb 100644 --- a/gramps2/src/PeopleView.py +++ b/gramps2/src/PeopleView.py @@ -104,11 +104,6 @@ class PeopleView: self.model_used[self.person_tree] = 1 self.apply_filter(self.person_tree) self.person_list.connect('button-press-event',self.on_plist_button_press) - mlist = self.person_tree.get_selected_objects() - if mlist: - self.parent.set_buttons(1) - else: - self.parent.set_buttons(0) def clear_person_tabs(self): self.clearing_tabs = 1 diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 29c4a20fd..80c87f202 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -1369,7 +1369,7 @@ class Gramps: else: self.backbtn.set_sensitive(0) self.back.set_sensitive(0) - + if person: self.set_buttons(1) else: