GTKUI: Modify Show Zero Hits to apply to all filter categories

This commit is contained in:
Calum Lind 2013-05-18 02:15:43 +01:00
parent 5479bdd85c
commit 42f5cc382d

View File

@ -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 = {}