don't fail where there is an unknown transport type

This commit is contained in:
Yann Leboulanger 2006-08-07 17:35:03 +00:00
parent 900e3a51dc
commit ed4406472a
1 changed files with 4 additions and 1 deletions

View File

@ -470,7 +470,10 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
for type_ in self.agents:
if type_ == 'jabber':
continue
liststore.append([uf_type[type_], type_])
if type_ in uf_type:
liststore.append([uf_type[type_], type_])
else:
liststore.append([type_, type_])
self.protocol_combobox.set_model(liststore)
self.protocol_combobox.set_active(0)
self.protocol_jid_combobox.set_sensitive(False)