From ec1aef198bc333057dba8b751f7845218cf80101 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 13 May 2011 20:34:19 +0200 Subject: [PATCH] Fix #2170 --- src/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core.py b/src/core.py index 381110da..61d32ae8 100644 --- a/src/core.py +++ b/src/core.py @@ -877,6 +877,11 @@ class Core(object): """ open a new conversation tab and focus it if needed """ + for tab in self.tabs: # if the room exists, focus it and return + if isinstance(tab, tabs.ConversationTab): + if tab.get_name() == jid: + self.command_win('%s' % tab.nb) + return tab new_tab = tabs.ConversationTab(jid) # insert it in the rooms self.add_tab(new_tab, focus)