From e8aee7327b9b111497dc12ab5dc44d88885c8532 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 17 Feb 2014 23:02:45 +0000 Subject: [PATCH] [2374][WebUI] Fix right-click selection issue --- deluge/ui/web/js/deluge-all/TorrentGrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());