mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-07 00:55:28 +00:00
select a row if there is no row selected when contextmenu is clicked
This commit is contained in:
parent
4852188ce9
commit
bccb7ca66e
@ -125,6 +125,10 @@ Deluge.Torrents.Grid = new Ext.grid.GridPanel({
|
||||
'rowcontextmenu': {
|
||||
fn: function(grid, rowIndex, e) {
|
||||
e.stopEvent();
|
||||
var selection = grid.getSelectionModel();
|
||||
if (!selection.hasSelection()) {
|
||||
selection.selectRow(rowIndex);
|
||||
}
|
||||
Deluge.Menus.Torrent.showAt(e.getPoint());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user