don't open a new tab with the same name if we already have one that is disconencted
This commit is contained in:
		
							parent
							
								
									d6e02e5839
								
							
						
					
					
						commit
						a113db8b0b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -271,7 +271,8 @@ class RosterWindow:
 | 
				
			||||||
				).get_response()
 | 
									).get_response()
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		room, server = room_jid.split('@')
 | 
							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].set_active_tab(room_jid)
 | 
				
			||||||
		self.plugin.windows[account]['gc'][room_jid].window.present()
 | 
							self.plugin.windows[account]['gc'][room_jid].window.present()
 | 
				
			||||||
		gajim.connections[account].join_gc(nick, room, server, password)
 | 
							gajim.connections[account].join_gc(nick, room, server, password)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue