changeset 1418:6adf1b0be609

quick_frontend: ask for the roster in connectedHandler instead of in ProfileManager, because we need it also when reconnecting after a disconnection whithout restarting the frontend
author souliane <souliane@mailoo.org>
date Mon, 20 Apr 2015 16:46:17 +0200 (2015-04-20)
parents 176de79c8c39
children be2df1ddea8e
files frontends/src/quick_frontend/quick_app.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Mon Apr 20 16:39:38 2015 +0200
+++ b/frontends/src/quick_frontend/quick_app.py	Mon Apr 20 16:46:17 2015 +0200
@@ -98,8 +98,6 @@
         if not self.bridge.isConnected(self.profile):
             self.host.setPresenceStatus(C.PRESENCE_UNAVAILABLE, '', profile=self.profile)
         else:
-
-            contact_list.fill()
             self.host.setPresenceStatus(profile=self.profile)
 
             #The waiting subscription requests
@@ -443,6 +441,7 @@
         """called when the connection is made"""
         log.debug(_("Connected"))
         self.setPresenceStatus(profile=profile)
+        self.contact_lists[profile].fill()
 
     def disconnectedHandler(self, profile):
         """called when the connection is closed"""