present window before printing the "you are already in this room" error dialog. Fixes #1142
This commit is contained in:
		
							parent
							
								
									912bda3074
								
							
						
					
					
						commit
						1d5c383095
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue