mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 14:26:24 +00:00
select the first filter if the current selected one is removed
This commit is contained in:
parent
2edf19c187
commit
faa1752d04
@ -141,7 +141,11 @@ Deluge.FilterPanel = Ext.extend(Ext.Panel, {
|
||||
|
||||
store.each(function(record) {
|
||||
if (filters[record.id]) return;
|
||||
var r = this.list.getSelectedRecords()[0];
|
||||
store.remove(record);
|
||||
if (r.id == record.id) {
|
||||
this.list.select(0);
|
||||
}
|
||||
}, this);
|
||||
|
||||
store.commitChanges();
|
||||
|
Loading…
x
Reference in New Issue
Block a user