mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-26 19:32:21 +00:00
[2374][WebUI] Fix right-click selection issue
This commit is contained in:
parent
018330c92c
commit
e8aee7327b
@ -306,7 +306,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…
x
Reference in New Issue
Block a user