when a groupchat occupand uses a previously used nick for which you had a window opened, closes the previous one.
This commit is contained in:
		
							parent
							
								
									3f4194e1a8
								
							
						
					
					
						commit
						d96cfefae8
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -687,6 +687,10 @@ _('Do you really want to close them all?'),
 | 
				
			||||||
        except KeyError:
 | 
					        except KeyError:
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if new_jid in self._controls[acct]:
 | 
				
			||||||
 | 
					            self.remove_tab(self._controls[acct][new_jid],
 | 
				
			||||||
 | 
					                self.CLOSE_CLOSE_BUTTON, force=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self._controls[acct][new_jid] = ctrl
 | 
					        self._controls[acct][new_jid] = ctrl
 | 
				
			||||||
        del self._controls[acct][old_jid]
 | 
					        del self._controls[acct][old_jid]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue