diff --git a/deluge/ui/web/js/deluge-all/TorrentGrid.js b/deluge/ui/web/js/deluge-all/TorrentGrid.js index 016503ccd..6645dfc09 100644 --- a/deluge/ui/web/js/deluge-all/TorrentGrid.js +++ b/deluge/ui/web/js/deluge-all/TorrentGrid.js @@ -353,7 +353,7 @@ this.on('rowcontextmenu', function(grid, rowIndex, e) { e.stopEvent(); var selection = grid.getSelectionModel(); - if (!selection.hasSelection()) { + if (!selection.isSelected(rowIndex)) { selection.selectRow(rowIndex); } deluge.menus.torrent.showAt(e.getPoint());