From 4c25ec71ba1d1680130579c5d5008d444b4c253f Mon Sep 17 00:00:00 2001 From: souliane Date: Mon, 20 Apr 2015 16:46:17 +0200 Subject: [PATCH] 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 --- frontends/src/quick_frontend/quick_app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontends/src/quick_frontend/quick_app.py b/frontends/src/quick_frontend/quick_app.py index c81e8941..15ed0be6 100644 --- a/frontends/src/quick_frontend/quick_app.py +++ b/frontends/src/quick_frontend/quick_app.py @@ -98,8 +98,6 @@ class ProfileManager(object): 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 @@ class QuickApp(object): """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"""