don't remove a _control when we try to rename it to the same name. Fixes #5346
This commit is contained in:
parent
bf46c5dd12
commit
4bf3be4665
|
@ -165,6 +165,8 @@ class MessageWindow(object):
|
||||||
return
|
return
|
||||||
if old_jid not in self._controls[account]:
|
if old_jid not in self._controls[account]:
|
||||||
return
|
return
|
||||||
|
if old_jid == new_jid:
|
||||||
|
return
|
||||||
self._controls[account][new_jid] = self._controls[account][old_jid]
|
self._controls[account][new_jid] = self._controls[account][old_jid]
|
||||||
del self._controls[account][old_jid]
|
del self._controls[account][old_jid]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue