diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index a365ddfa7..107acb3e9 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -363,7 +363,7 @@ class ConnectionManager(component.Component): if self.gtkui_config["autoconnect"]: self.gtkui_config["autoconnect_host_id"] = host_id - def on_button_connect_clicked(self, widget): + def on_button_connect_clicked(self, widget=None): model, row = self.hostlist.get_selection().get_selected() status = model[row][HOSTLIST_COL_STATUS] if status == "Connected":