mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
fix the first item being selected upon creation
This commit is contained in:
parent
9f185da446
commit
fec735f948
1 changed files with 4 additions and 6 deletions
|
@ -77,12 +77,6 @@ Deluge.FilterPanel = Ext.extend(Ext.Panel, {
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
this.relayEvents(this.list, ['selectionchange']);
|
this.relayEvents(this.list, ['selectionchange']);
|
||||||
this.list.afterMethod('bindStore', this.doBindStore, this);
|
|
||||||
},
|
|
||||||
|
|
||||||
// private
|
|
||||||
doBindStore: function() {
|
|
||||||
this.list.select(0);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -160,6 +154,10 @@ Deluge.FilterPanel = Ext.extend(Ext.Panel, {
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
store.commitChanges();
|
store.commitChanges();
|
||||||
|
|
||||||
|
if (!this.list.getSelectionCount()) {
|
||||||
|
this.list.select(0);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue