diff --git a/deluge/ui/web/js/deluge-all/TorrentGrid.js b/deluge/ui/web/js/deluge-all/TorrentGrid.js index 7ef8958eb..ea2446317 100644 --- a/deluge/ui/web/js/deluge-all/TorrentGrid.js +++ b/deluge/ui/web/js/deluge-all/TorrentGrid.js @@ -306,7 +306,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());