mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-12 03:18:47 +00:00
[2374][WebUI] Fix right-click selection issue
This commit is contained in:
parent
f415fa1a7e
commit
32d5a0bab2
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@
|
||||||
this.on('rowcontextmenu', function(grid, rowIndex, e) {
|
this.on('rowcontextmenu', function(grid, rowIndex, e) {
|
||||||
e.stopEvent();
|
e.stopEvent();
|
||||||
var selection = grid.getSelectionModel();
|
var selection = grid.getSelectionModel();
|
||||||
if (!selection.hasSelection()) {
|
if (!selection.isSelected(rowIndex)) {
|
||||||
selection.selectRow(rowIndex);
|
selection.selectRow(rowIndex);
|
||||||
}
|
}
|
||||||
deluge.menus.torrent.showAt(e.getPoint());
|
deluge.menus.torrent.showAt(e.getPoint());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue