fix adding transport contacts

This commit is contained in:
Yann Leboulanger 2013-11-30 15:25:21 +01:00
parent d3e6e22166
commit cb98239794
1 changed files with 3 additions and 3 deletions

View File

@ -1068,11 +1068,11 @@ class AddNewContactWindow:
model = self.protocol_combobox.get_model() model = self.protocol_combobox.get_model()
row = self.protocol_combobox.get_active_iter() row = self.protocol_combobox.get_active_iter()
type_ = model[row][2] type_ = model[row][2]
if type_ != 'jabber' and not self.jid_escaped: if type_ != 'jabber':
model = self.protocol_jid_combobox.get_model() model = self.protocol_jid_combobox.get_model()
row = self.protocol_jid_combobox.get_active() row = self.protocol_jid_combobox.get_active()
transport = model[row][0] transport = model[row][0]
if self.account: if self.account and not self.jid_escaped:
self.adding_jid = (jid, transport, type_) self.adding_jid = (jid, transport, type_)
gajim.connections[self.account].request_gateway_prompt( gajim.connections[self.account].request_gateway_prompt(
transport, jid) transport, jid)
@ -5229,7 +5229,7 @@ class GPGInfoWindow:
""" """
Class for displaying information about a XEP-0116 encrypted session Class for displaying information about a XEP-0116 encrypted session
""" """
def __init__(self, control): def __init__(self, control, transient_for=None):
xml = gtkgui_helpers.get_gtk_builder('esession_info_window.ui') xml = gtkgui_helpers.get_gtk_builder('esession_info_window.ui')
security_image = xml.get_object('security_image') security_image = xml.get_object('security_image')
status_label = xml.get_object('verification_status_label') status_label = xml.get_object('verification_status_label')