diff frontends/primitivus/contact_list.py @ 184:8ea1510d474b

Primitivus: fixed contact list clear
author Goffi <goffi@goffi.org>
date Wed, 18 Aug 2010 16:07:38 +0800
parents a2655a0a4eac
children 879beacb8e16
line wrap: on
line diff
--- a/frontends/primitivus/contact_list.py	Wed Aug 18 15:57:26 2010 +0800
+++ b/frontends/primitivus/contact_list.py	Wed Aug 18 16:07:38 2010 +0800
@@ -133,6 +133,9 @@
         """clear all the contact list"""
         self.groups={}
         self.selected = None
+        self.unselectAll()
+        self.frame.body = self.__buildList()
+        self.host.redraw()
 
     def replace(self, jid, groups=[None]):
         """add a contact to the list if doesn't exist, else update it"""