prevent a TB
This commit is contained in:
parent
29fb257f66
commit
b8505eec7e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue