when a groupchat occupand uses a previously used nick for which you had a window opened, closes the previous one.

This commit is contained in:
Yann Leboulanger 2010-06-10 10:26:15 +02:00
parent 3f4194e1a8
commit d96cfefae8
1 changed files with 4 additions and 0 deletions

View File

@ -687,6 +687,10 @@ _('Do you really want to close them all?'),
except KeyError:
return
if new_jid in self._controls[acct]:
self.remove_tab(self._controls[acct][new_jid],
self.CLOSE_CLOSE_BUTTON, force=True)
self._controls[acct][new_jid] = ctrl
del self._controls[acct][old_jid]