comparison frontends/src/quick_frontend/quick_contact_list.py @ 1410:e2e75c3c7c7b

quick_frontend, primitivus: fixes a couple of issues: - chat: notification was raising an error when you just entered the room and self.nick is None - quick_widget: deleting a widget was modifying a dict while looping on it + unselect widget when it's being deleted
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 17:17:28 +0200
parents 3265a2639182
children 176de79c8c39
comparison
equal deleted inserted replaced
1409:3265a2639182 1410:e2e75c3c7c7b
247 """Clear all the contact list""" 247 """Clear all the contact list"""
248 self.unselectAll() 248 self.unselectAll()
249 self._cache.clear() 249 self._cache.clear()
250 self._groups.clear() 250 self._groups.clear()
251 self._specials.clear() 251 self._specials.clear()
252 self._special_extras.clear()
253 self._roster.clear()
254 self._alerts.clear()
252 self.update() 255 self.update()
253 256
254 def setContact(self, entity, groups=None, attributes=None, in_roster=False): 257 def setContact(self, entity, groups=None, attributes=None, in_roster=False):
255 """Add a contact to the list if doesn't exist, else update it. 258 """Add a contact to the list if doesn't exist, else update it.
256 259