From 2b96aa990e726dfcef08533f80f4b10ad11b978a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 20 Mar 2009 18:55:54 +0000 Subject: [PATCH] Fix showing connected status in connection manager --- deluge/ui/gtkui/connectionmanager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 891ae6c64..f744bddbf 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -272,7 +272,9 @@ class ConnectionManager(component.Component): port = row[HOSTLIST_COL_PORT] user = row[HOSTLIST_COL_USER] password = row[HOSTLIST_COL_PASS] - if client.connected() and (host, port, user) == client.connection_info(): + + if client.connected() and \ + (host, port, "localclient" if not user and host in ("127.0.0.1", "localhost") else user) == client.connection_info(): def on_info(info): if not self.running: return