Module: deluge
Branch: master
Commit: c0fd70a856310fc0f37a7ccc4f45544a429f12b0

Author: Damien Churchill <[email protected]>
Date:   Wed Apr 28 10:45:38 2010 +0100

fix removing the filter panels upon disconnect

---

 deluge/ui/web/js/deluge-all/Sidebar.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/deluge/ui/web/js/deluge-all/Sidebar.js 
b/deluge/ui/web/js/deluge-all/Sidebar.js
index e194a3d..8a72e88 100644
--- a/deluge/ui/web/js/deluge-all/Sidebar.js
+++ b/deluge/ui/web/js/deluge-all/Sidebar.js
@@ -110,9 +110,9 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, {
 
        // private
        onDisconnect: function() {
-               Ext.each(Ext.getKeys(this.panels), function(filter) {
-                       this.remove(filter + '-panel');
-               }, this);
+               for (var filter in this.panels) {
+                       this.remove(this.panels[filter]);
+               }
                this.panels = {};
                this.selected = null;
        },

-- 
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