mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
return if there is no connection selected
This commit is contained in:
parent
d542666f20
commit
7c3c1fb767
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ Deluge.Connections = {
|
|||
$clear(Deluge.Connections.running);
|
||||
Deluge.Connections.Window.hide();
|
||||
var selected = Deluge.Connections.Grid.getSelectionModel().getSelected();
|
||||
if (!selected) return;
|
||||
var id = selected.id;
|
||||
Deluge.Client.web.connect(id, {
|
||||
onSuccess: function(methods) {
|
||||
|
|
Loading…
Add table
Reference in a new issue