prevent traceback when opening accounts window
This commit is contained in:
		
							parent
							
								
									7590a57f66
								
							
						
					
					
						commit
						2369c01cc1
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1408,8 +1408,8 @@ class AccountsWindow:
 | 
			
		|||
				gajim.connections[gajim.ZEROCONF_ACC_NAME].update_details()
 | 
			
		||||
				return
 | 
			
		||||
			
 | 
			
		||||
		elif self.need_relogin and gajim.connections[self.current_account].\
 | 
			
		||||
		connected > 0:
 | 
			
		||||
		elif self.need_relogin and self.current_account and \
 | 
			
		||||
		gajim.connections[self.current_account].connected > 0:
 | 
			
		||||
			def login(account, show_before, status_before):
 | 
			
		||||
				''' login with previous status'''
 | 
			
		||||
				# first make sure connection is really closed, 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue