From b8505eec7e9f3dc6f9ef57543d68e71147e9e0cf Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 30 Jun 2005 21:30:06 +0000 Subject: [PATCH] prevent a TB --- src/groupchat_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 73d4f284c..1aacc4085 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -209,7 +209,8 @@ class GroupchatWindow(chat.Chat): iter = self.get_user_iter(room_jid, nick) if not iter: 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) model.remove(iter) if model.iter_n_children(parent_iter) == 0: