diff --git a/sat_frontends/quick_frontend/quick_app.py b/sat_frontends/quick_frontend/quick_app.py index 0e21a24e..c40dd420 100644 --- a/sat_frontends/quick_frontend/quick_app.py +++ b/sat_frontends/quick_frontend/quick_app.py @@ -696,12 +696,22 @@ class QuickApp(object): log.debug(_("Connected")) self.profiles[profile].whoami = jid.JID(jid_s) self.setPresenceStatus(profile=profile) + # FIXME: fill() is already called for all profiles when doing self.sync = True + # a per-profile fill() should be done once, see below note self.contact_lists[profile].fill() + # if we were already displaying widgets, they must be resynchronized + # FIXME: self.sync is for all profiles + # while (dis)connection is per-profile. + # A mechanism similar to sync should be available + # on a per-profile basis + self.sync = True def disconnectedHandler(self, profile): """called when the connection is closed""" log.debug(_("Disconnected")) self.contact_lists[profile].disconnect() + # FIXME: see note on connectedHandler + self.sync = False self.setPresenceStatus(C.PRESENCE_UNAVAILABLE, "", profile=profile) def actionNewHandler(self, action_data, id_, security_limit, profile):