From d96cfefae88a799939b5498ce63fcd2e3756578b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 10 Jun 2010 10:26:15 +0200 Subject: [PATCH] when a groupchat occupand uses a previously used nick for which you had a window opened, closes the previous one. --- src/message_window.py | 4 ++++ 1 file changed, 4 insertions(+) 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]