From d780248e87d92a3f626f12a2a051fc715f634389 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 26 Aug 2010 15:26:33 +0200 Subject: [PATCH] Use Account.ConnectionStatus instead of Account.Connection.Status --- src/sugar/presence/connectionmanager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sugar/presence/connectionmanager.py b/src/sugar/presence/connectionmanager.py index 1165c455..e681eb6d 100644 --- a/src/sugar/presence/connectionmanager.py +++ b/src/sugar/presence/connectionmanager.py @@ -74,7 +74,8 @@ class ConnectionManager(object): self._connections_per_account[account_path] = \ Connection(account_path, connection) - if connection.Get(CONNECTION, 'Status') == CONNECTION_STATUS_CONNECTED: + account = bus.get_object(ACCOUNT_MANAGER_SERVICE, account_path) + if account.Get(ACCOUNT, 'ConnectionStatus') == CONNECTION_STATUS_CONNECTED: self._connections_per_account[account_path].connected = True else: self._connections_per_account[account_path].connected = False