diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2013-05-18 02:15:43 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2013-05-18 02:16:16 +0100 |
commit | 42f5cc382dad06cbf584d6bd41303e2f0e3a0167 (patch) | |
tree | 2d897217090aae59dbc299e16efa82c4d059924c | |
parent | 5479bdd85c21455fecc51897e4da43a93bc92023 (diff) | |
download | deluge-42f5cc382dad06cbf584d6bd41303e2f0e3a0167.tar.gz deluge-42f5cc382dad06cbf584d6bd41303e2f0e3a0167.tar.bz2 deluge-42f5cc382dad06cbf584d6bd41303e2f0e3a0167.zip |
GTKUI: Modify Show Zero Hits to apply to all filter categories
-rw-r--r-- | deluge/core/filtermanager.py | 5 |
1 files 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 = {} |