From a113db8b0b2b934baa5bc41d6347fcde14cb4f4c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 4 Aug 2005 21:14:43 +0000 Subject: [PATCH] don't open a new tab with the same name if we already have one that is disconencted --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 70aa68624..a9f3125ff 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -271,7 +271,8 @@ class RosterWindow: ).get_response() return room, server = room_jid.split('@') - self.new_room(room_jid, nick, account) + if not room_jid in self.plugin.windows[account]['gc']: + self.new_room(room_jid, nick, account) self.plugin.windows[account]['gc'][room_jid].set_active_tab(room_jid) self.plugin.windows[account]['gc'][room_jid].window.present() gajim.connections[account].join_gc(nick, room, server, password)