From 3e7ace0e11d9a21173389cf0c8f8ac0dead199eb Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 18 May 2006 14:30:41 +0000 Subject: [PATCH] fixed clearing of combobox svn: r6707 --- gramps2/src/Filters/_PersonSidebarFilter.py | 2 +- gramps2/src/PageView.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps2/src/Filters/_PersonSidebarFilter.py b/gramps2/src/Filters/_PersonSidebarFilter.py index ae7239333..fa898502b 100644 --- a/gramps2/src/Filters/_PersonSidebarFilter.py +++ b/gramps2/src/Filters/_PersonSidebarFilter.py @@ -73,7 +73,7 @@ class PersonSidebarFilter(SidebarFilter): self.filter_death.set_text('') self.filter_note.set_text('') self.filter_gender.set_active(0) - self.etype.set_text('') + self.etype.child.set_text('') def clicked(self, obj): self.clicked_func() diff --git a/gramps2/src/PageView.py b/gramps2/src/PageView.py index cbaaac4ed..b71064397 100644 --- a/gramps2/src/PageView.py +++ b/gramps2/src/PageView.py @@ -71,7 +71,6 @@ class PageView: self.additional_uis = [] self.widget = None self.ui = '' - self.dbstate.connect('no-database',self.disable_action_group) self.dbstate.connect('database-changed',self.enable_action_group) self.dirty = True self.active = False @@ -108,6 +107,9 @@ class PageView: if self.action_group: self.action_group.set_visible(False) + def disable_actions(self, obj): + self.disable_action_group() + def enable_action_group(self,obj): if self.action_group: self.action_group.set_visible(True)