mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix removing filters that no longer exist
add a filtercreate event
This commit is contained in:
parent
62158d7861
commit
1825ce09fb
1 changed files with 4 additions and 1 deletions
|
@ -109,6 +109,7 @@
|
|||
|
||||
this.doLayout();
|
||||
this.panels[filter] = panel;
|
||||
this.fireEvent('filtercreate', this, panel);
|
||||
},
|
||||
|
||||
getFilters: function() {
|
||||
|
@ -164,7 +165,9 @@
|
|||
Ext.each(Ext.keys(this.panels), function(filter) {
|
||||
if (Ext.keys(filters).indexOf(filter) == -1) {
|
||||
// We need to remove the panel
|
||||
this.panels[filter]
|
||||
this.remove(this.panels[filter]);
|
||||
this.doLayout();
|
||||
delete this.panels[filter];
|
||||
}
|
||||
}, this);
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue