mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-27 02:20:32 +00:00
fix removing the filter panels upon disconnect
This commit is contained in:
parent
028a35bfc8
commit
c0fd70a856
@ -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;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user