Fix double-clicking on host entry to connect

This commit is contained in:
Andrew Resch 2009-01-30 03:07:22 +00:00
parent d6fd69eba8
commit b3b856bcca

View File

@ -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":