disco on custom hostanme if such thing is defined
This commit is contained in:
parent
34db24a69a
commit
2626b888b9
|
@ -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…
Reference in New Issue