From ecff92dfd89826bb655c88fe54c6573ea3e9d0cc Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Mon, 16 Jul 2007 15:12:44 +0000 Subject: [PATCH] Make add contact work with unknown transports. Fixes #3302 --- src/dialogs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index a7e9ff80b..a6eb762c7 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -538,11 +538,13 @@ _('Please fill in the data of the contact you want to add in account %s') %accou imgs = gajim.interface.roster.transports_state_images img = None if imgs['16'].has_key(type_) and imgs['16'][type_].has_key('online'): - img = gajim.interface.roster.transports_state_images['16'][type_]['online'] - if type_ in uf_type: - liststore.append([uf_type[type_], img.get_pixbuf(), type_]) + img = imgs['16'][type_]['online'] + if type_ in uf_type: + liststore.append([uf_type[type_], img.get_pixbuf(), type_]) + else: + liststore.append([type_, img.get_pixbuf(), type_]) else: - liststore.append([type_, img.get_pixbuf(), type_]) + liststore.append([type_, img, type_]) self.protocol_combobox.set_active(0) self.protocol_jid_combobox.set_no_show_all(True) self.protocol_jid_combobox.hide()