Primitivus: fixed contact list clear

This commit is contained in:
Goffi 2010-08-18 16:07:38 +08:00
commit d3e0f39311

View file

@ -133,6 +133,9 @@ class ContactList(urwid.WidgetWrap, QuickContactList):
"""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"""