Make add contact work with unknown transports. Fixes #3302

This commit is contained in:
Stephan Erb 2007-07-16 15:12:44 +00:00
parent 4e3baba4e5
commit ecff92dfd8
1 changed files with 6 additions and 4 deletions

View File

@ -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()