fix removing torrents from the grid

This commit is contained in:
Damien Churchill 2009-04-27 20:50:54 +00:00
parent b88542f105
commit 200e348f7d
2 changed files with 6 additions and 7 deletions

View File

@ -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