diff --git a/src/Filters/_SearchBar.py b/src/Filters/_SearchBar.py index e0c272179..6c7497710 100644 --- a/src/Filters/_SearchBar.py +++ b/src/Filters/_SearchBar.py @@ -79,6 +79,7 @@ class SearchBar: return self.filterbar def setup_filter( self, column_data ): + self.filter_model.clear() old_value = self.filter_list.get_active() cell = gtk.CellRendererText() @@ -86,7 +87,6 @@ class SearchBar: self.filter_list.pack_start(cell, True) self.filter_list.add_attribute(cell, 'text', 0) - maxval = 0 for col, index in column_data: rule = _("%s contains") % col