Module: deluge
Branch: master
Commit: 4cb2bcae2562863a48b75061d6f3891ed8828145

Author: John Garland <[email protected]>
Date:   Sat Oct  2 23:55:51 2010 +1000

Fix sidebar not updating (#1365)

---

 deluge/core/filtermanager.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py
index 0852578..a911368 100644
--- a/deluge/core/filtermanager.py
+++ b/deluge/core/filtermanager.py
@@ -200,9 +200,8 @@ class FilterManager(component.Component):
                 value = status[field]
                 items[field][value] = items[field].get(value, 0) + 1
 
-        items["tracker_host"]["All"] = len(torrent_ids)
-
         if "tracker_host" in items:
+            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:

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to