From 4bf3be46653b96a6c3a028ab1a692c515b458f8d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 6 Nov 2009 20:51:16 +0100 Subject: [PATCH] don't remove a _control when we try to rename it to the same name. Fixes #5346 --- src/message_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/message_window.py b/src/message_window.py index f4bf614a2..68f66007a 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -165,6 +165,8 @@ class MessageWindow(object): return if old_jid not in self._controls[account]: return + if old_jid == new_jid: + return self._controls[account][new_jid] = self._controls[account][old_jid] del self._controls[account][old_jid]