Author: andar
Revision: 4898
Log:
Fix showing connected status in connection manager
Diff:
Modified: trunk/deluge/ui/gtkui/connectionmanager.py
===================================================================
--- trunk/deluge/ui/gtkui/connectionmanager.py 2009-03-20 18:26:47 UTC (rev
4897)
+++ trunk/deluge/ui/gtkui/connectionmanager.py 2009-03-20 18:55:54 UTC (rev
4898)
@@ -272,7 +272,9 @@
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---