From 12bf5676787b69edad9b1aad6b440ee4e9e6e05e Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Wed, 3 Feb 2010 21:43:45 +0000 Subject: [PATCH] GeoView : Don't show the filter when the database is not yet selected. svn: r14202 --- src/plugins/view/geoview.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/view/geoview.py b/src/plugins/view/geoview.py index 2e927f57e..207fc14e6 100644 --- a/src/plugins/view/geoview.py +++ b/src/plugins/view/geoview.py @@ -630,6 +630,7 @@ class GeoView(HtmlView): self.key_active_changed = self.dbstate.connect('active-changed', self._goto_active_person) self._goto_active_person() + self.filter.hide() # hide the filter def set_inactive(self): """ @@ -2067,9 +2068,9 @@ class GeoView(HtmlView): if self.displaytype == "places" or self.displaytype == "event": if config.get('interface.filter'): - self.filter_pane.show() + self.filter.show() else: - self.filter_pane.hide() + self.filter.hide() def filter_toggle_action(self, obj): """ @@ -2078,10 +2079,10 @@ class GeoView(HtmlView): """ if self.displaytype == "places" or self.displaytype == "event": if obj.get_active(): - self.filter_pane.show() + self.filter.show() active = True else: - self.filter_pane.hide() + self.filter.hide() active = False config.set('interface.filter', active) self.build_tree()