changeset 1429:798e5e38516b

quick_frontend (quick_app): properly fixed roster loss: commit 6adf1b0be609 which was causing issues in Libervia or when a profile was already connected
author Goffi <goffi@goffi.org>
date Fri, 22 May 2015 22:31:37 +0200
parents 0e518415d03a
children ba09cd879343
files frontends/src/quick_frontend/quick_app.py frontends/src/quick_frontend/quick_contact_list.py
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Fri Apr 24 16:10:46 2015 +0200
+++ b/frontends/src/quick_frontend/quick_app.py	Fri May 22 22:31:37 2015 +0200
@@ -98,6 +98,8 @@
         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
--- a/frontends/src/quick_frontend/quick_contact_list.py	Fri Apr 24 16:10:46 2015 +0200
+++ b/frontends/src/quick_frontend/quick_contact_list.py	Fri May 22 22:31:37 2015 +0200
@@ -135,7 +135,11 @@
         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)