present window before printing the "you are already in this room" error dialog. Fixes #1142

This commit is contained in:
Yann Leboulanger 2006-02-01 21:15:56 +00:00
parent 912bda3074
commit 1d5c383095
1 changed files with 3 additions and 0 deletions

View File

@ -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