diff --git a/src/Filters/_PersonSidebarFilter.py b/src/Filters/_PersonSidebarFilter.py index ae7239333..fa898502b 100644 --- a/src/Filters/_PersonSidebarFilter.py +++ b/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/src/PageView.py b/src/PageView.py index cbaaac4ed..b71064397 100644 --- a/src/PageView.py +++ b/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)