mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 14:26:24 +00:00
fix removing torrents from the grid
This commit is contained in:
parent
b88542f105
commit
200e348f7d
@ -222,14 +222,13 @@ Copyright:
|
|||||||
|
|
||||||
// private
|
// private
|
||||||
onTorrentRemoved: function(torrentIds) {
|
onTorrentRemoved: function(torrentIds) {
|
||||||
var selModel = this.Grid.getSelectionModel();
|
var selModel = this.getSelectionModel();
|
||||||
$each(torrentIds, function(torrentId) {
|
Ext.each(torrentIds, function(torrentId) {
|
||||||
var record = this.Store.getById(torrentId);
|
var record = this.getStore().getById(torrentId);
|
||||||
if (selModel.isSelected(record)) {
|
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);
|
}, this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user