prevent a TB

This commit is contained in:
Yann Leboulanger 2005-06-30 21:30:06 +00:00
parent 29fb257f66
commit b8505eec7e
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ class GroupchatWindow(chat.Chat):
iter = self.get_user_iter(room_jid, nick) iter = self.get_user_iter(room_jid, nick)
if not iter: if not iter:
return return
del self.contacts[room_jid][nick] if self.contacts[room_jid].has_key(nick):
del self.contacts[room_jid][nick]
parent_iter = model.iter_parent(iter) parent_iter = model.iter_parent(iter)
model.remove(iter) model.remove(iter)
if model.iter_n_children(parent_iter) == 0: if model.iter_n_children(parent_iter) == 0: