return if there is no connection selected
This commit is contained in:
parent
d542666f20
commit
7c3c1fb767
|
@ -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…
Reference in New Issue