From 3c6a708966d9215228669c53c763125032302a59 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 22 May 2015 22:31:37 +0200 Subject: [PATCH] quick_frontend (quick_app): properly fixed roster loss: commit 6adf1b0be609 which was causing issues in Libervia or when a profile was already connected --- frontends/src/quick_frontend/quick_app.py | 2 ++ frontends/src/quick_frontend/quick_contact_list.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontends/src/quick_frontend/quick_app.py b/frontends/src/quick_frontend/quick_app.py index 15ed0be6..3cb3acb3 100644 --- a/frontends/src/quick_frontend/quick_app.py +++ b/frontends/src/quick_frontend/quick_app.py @@ -98,6 +98,8 @@ 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 diff --git a/frontends/src/quick_frontend/quick_contact_list.py b/frontends/src/quick_frontend/quick_contact_list.py index abf76c15..0b402f53 100644 --- a/frontends/src/quick_frontend/quick_contact_list.py +++ b/frontends/src/quick_frontend/quick_contact_list.py @@ -135,7 +135,11 @@ class QuickContactList(QuickWidget): return result def fill(self): - """Get all contacts from backend, and fill the widget""" + """Get all contacts from backend, and fill the widget + + Contacts will be cleared before refilling them + """ + self.clearContacts() def gotContacts(contacts): for contact in contacts: self.host.newContactHandler(*contact, profile=self.profile)