disco on custom hostanme if such thing is defined
This commit is contained in:
		
							parent
							
								
									34db24a69a
								
							
						
					
					
						commit
						2626b888b9
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -264,6 +264,7 @@ def get_jid_from_account(account_name):
 | 
			
		|||
 | 
			
		||||
def get_hostname_from_account(account_name):
 | 
			
		||||
	'''returns hostname (if custom hostname is used, that is returned)'''
 | 
			
		||||
	#FIXME: save srv record result and ask it here
 | 
			
		||||
	if config.get_per('accounts', account_name, 'use_custom_host'):
 | 
			
		||||
		return config.get_per('accounts', account_name, 'custom_host')
 | 
			
		||||
	return config.get_per('accounts', account_name, 'hostname')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1646,8 +1646,7 @@ class AccountsWindow:
 | 
			
		|||
		self.accounts_treeview = self.xml.get_widget('accounts_treeview')
 | 
			
		||||
		self.modify_button = self.xml.get_widget('modify_button')
 | 
			
		||||
		self.remove_button = self.xml.get_widget('remove_button')
 | 
			
		||||
		model = gtk.ListStore(str, str,
 | 
			
		||||
					bool)
 | 
			
		||||
		model = gtk.ListStore(str, str, bool)
 | 
			
		||||
		self.accounts_treeview.set_model(model)
 | 
			
		||||
		#columns
 | 
			
		||||
		renderer = gtk.CellRendererText()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue