comparison frontends/src/quick_frontend/quick_app.py @ 344:f19771d2e63b

quickapp: fixed contact removing bug
author Goffi <goffi@goffi.org>
date Sat, 28 May 2011 20:23:41 +0200
parents c1ad04586edf
children ea3e1b82dd79
comparison
equal deleted inserted replaced
343:6fe6ae70904a 344:f19771d2e63b
408 408
409 def contactDeleted(self, jid, profile): 409 def contactDeleted(self, jid, profile):
410 if not self.check_profile(profile): 410 if not self.check_profile(profile):
411 return 411 return
412 target = JID(jid) 412 target = JID(jid)
413 self.contactList.remove(self.CM.get_full(target))
413 self.CM.remove(target) 414 self.CM.remove(target)
414 self.contactList.remove(self.CM.get_full(target))
415 try: 415 try:
416 self.profiles[profile]['onlineContact'].remove(target.short) 416 self.profiles[profile]['onlineContact'].remove(target.short)
417 except KeyError: 417 except KeyError:
418 pass 418 pass
419 419