diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2010-06-10 12:26:15 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2010-06-10 12:26:15 +0400 |
commit | d96cfefae88a799939b5498ce63fcd2e3756578b (patch) | |
tree | a2bc13f4cb91643cc9af25d60c3d16cee3c2bf52 | |
parent | 3f4194e1a826123728cc097f749997480bc58dcd (diff) |
when a groupchat occupand uses a previously used nick for which you had a window opened, closes the previous one.
-rw-r--r-- | src/message_window.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/message_window.py b/src/message_window.py index 26b05e47f..4dff5394c 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -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] |