From 1d5c383095e4ee64feb766f0092cbe7f1de272df Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 1 Feb 2006 21:15:56 +0000 Subject: [PATCH] present window before printing the "you are already in this room" error dialog. Fixes #1142 --- src/roster_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index de6b92067..9df454706 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -410,6 +410,9 @@ class RosterWindow: '''joins the room immediatelly''' if gajim.interface.msg_win_mgr.has_window(room_jid, account) and \ gajim.gc_connected[account][room_jid]: + win = gajim.interface.msg_win_mgr.get_window(room_jid, account) + win.window.present() + win.set_active_tab(room_jid, account) dialogs.ErrorDialog(_('You are already in room %s') % room_jid ).get_response() return