diff options
author | mathieui <mathieui@mathieui.net> | 2011-05-13 20:34:19 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-05-13 20:34:19 +0200 |
commit | ec1aef198bc333057dba8b751f7845218cf80101 (patch) | |
tree | 2f9f477ba2197c5ad9f97abe4cff568327e66742 /src | |
parent | 007170e39ed7dae13e19c3fe752b910db523d48b (diff) | |
download | poezio-ec1aef198bc333057dba8b751f7845218cf80101.tar.gz poezio-ec1aef198bc333057dba8b751f7845218cf80101.tar.bz2 poezio-ec1aef198bc333057dba8b751f7845218cf80101.tar.xz poezio-ec1aef198bc333057dba8b751f7845218cf80101.zip |
Fix #2170
Diffstat (limited to 'src')
-rw-r--r-- | src/core.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |