From 85f9247fd703f7efd4f9a592ce3d90a71b5b75ff Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 20 May 2013 15:41:16 +0100 Subject: [PATCH] GTKUI: Fix Show Zero Hits to only apply to state, owner and tracker_host There is an issue with the Label plugin where a new label would 'disappear' and you could not change the options for the new label with zero hits hidden. --- deluge/core/filtermanager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py index 1079af9ed..4643d4637 100644 --- a/deluge/core/filtermanager.py +++ b/deluge/core/filtermanager.py @@ -223,8 +223,9 @@ class FilterManager(component.Component): items["tracker_host"]["Error"] = len(tracker_error_filter(torrent_ids, ("Error",))) if not show_zero_hits: - for cat in tree_keys: - self._hide_state_items(items[cat]) + for cat in ["state", "owner", "tracker_host"]: + if cat in tree_keys: + self._hide_state_items(items[cat]) # Return a dict of tuples: sorted_items = {}