fix removing torrents from the grid
This commit is contained in:
parent
b88542f105
commit
200e348f7d
|
@ -222,14 +222,13 @@ Copyright:
|
|||
|
||||
// private
|
||||
onTorrentRemoved: function(torrentIds) {
|
||||
var selModel = this.Grid.getSelectionModel();
|
||||
$each(torrentIds, function(torrentId) {
|
||||
var record = this.Store.getById(torrentId);
|
||||
var selModel = this.getSelectionModel();
|
||||
Ext.each(torrentIds, function(torrentId) {
|
||||
var record = this.getStore().getById(torrentId);
|
||||
if (selModel.isSelected(record)) {
|
||||
selModel.deselectRow(this.Store.indexOf(record));
|
||||
selModel.deselectRow(this.getStore().indexOf(record));
|
||||
}
|
||||
this.Store.remove(record);
|
||||
|
||||
this.getStore().remove(record);
|
||||
}, this);
|
||||
}
|
||||
});
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue