From b3b856bcca07364217b8efa52506680757193a30 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 30 Jan 2009 03:07:22 +0000 Subject: [PATCH] Fix double-clicking on host entry to connect --- deluge/ui/gtkui/connectionmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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":