Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2010-06-10 12:26:15 +0400
committerYann Leboulanger <asterix@lagaule.org>2010-06-10 12:26:15 +0400
commitd96cfefae88a799939b5498ce63fcd2e3756578b (patch)
treea2bc13f4cb91643cc9af25d60c3d16cee3c2bf52
parent3f4194e1a826123728cc097f749997480bc58dcd (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.py4
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]