diff --git a/deluge/ui/gtkui/filtertreeview.py b/deluge/ui/gtkui/filtertreeview.py index d315d36b7..9e4af549d 100644 --- a/deluge/ui/gtkui/filtertreeview.py +++ b/deluge/ui/gtkui/filtertreeview.py @@ -138,6 +138,8 @@ class FilterTreeView(component.Component): self.update_row("state", "Paused" , 0) self.update_row("state", "Queued" , 0) + # We set to this expand the rows on start-up + self.expand_rows = True def create_model_filter(self): self.model_filter = self.treestore.filter_new() @@ -169,6 +171,10 @@ class FilterTreeView(component.Component): if not f in visible_filters: self.treestore.set_value(self.filters[f], FILTER_COLUMN, False) + if self.expand_rows: + self.label_view.expand_all() + self.expand_rows = False + (model, row) = self.label_view.get_selection().get_selected() if not row: self.select_default_filter()