mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
select the first filter if the current selected one is removed
This commit is contained in:
parent
2edf19c187
commit
faa1752d04
1 changed files with 4 additions and 0 deletions
|
@ -141,7 +141,11 @@ Deluge.FilterPanel = Ext.extend(Ext.Panel, {
|
||||||
|
|
||||||
store.each(function(record) {
|
store.each(function(record) {
|
||||||
if (filters[record.id]) return;
|
if (filters[record.id]) return;
|
||||||
|
var r = this.list.getSelectedRecords()[0];
|
||||||
store.remove(record);
|
store.remove(record);
|
||||||
|
if (r.id == record.id) {
|
||||||
|
this.list.select(0);
|
||||||
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
store.commitChanges();
|
store.commitChanges();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue