don't remove a _control when we try to rename it to the same name. Fixes #5346

This commit is contained in:
Yann Leboulanger 2009-11-06 20:51:16 +01:00
parent bf46c5dd12
commit 4bf3be4665
1 changed files with 2 additions and 0 deletions

View File

@ -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]