From 42f5cc382dad06cbf584d6bd41303e2f0e3a0167 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 18 May 2013 02:15:43 +0100 Subject: [PATCH] GTKUI: Modify Show Zero Hits to apply to all filter categories --- 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 01ec72316..1079af9ed 100644 --- a/deluge/core/filtermanager.py +++ b/deluge/core/filtermanager.py @@ -222,8 +222,9 @@ class FilterManager(component.Component): items["tracker_host"]["All"] = len(torrent_ids) items["tracker_host"]["Error"] = len(tracker_error_filter(torrent_ids, ("Error",))) - if "state" in tree_keys and not show_zero_hits: - self._hide_state_items(items["state"]) + if not show_zero_hits: + for cat in tree_keys: + self._hide_state_items(items[cat]) # Return a dict of tuples: sorted_items = {}