From f252ca1775f67f2a42e26c05519c54a6b0bb9403 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 23 Nov 2008 08:43:07 +0000 Subject: [PATCH] Expand all filters on start --- deluge/ui/gtkui/filtertreeview.py | 6 ++++++ 1 file changed, 6 insertions(+) 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()