fix the show transport icon in add contact dialog
This commit is contained in:
parent
e53a47ebad
commit
74196a65ed
|
@ -498,6 +498,8 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
|
||||||
for j in gajim.contacts.get_jid_list(acct):
|
for j in gajim.contacts.get_jid_list(acct):
|
||||||
if gajim.jid_is_transport(j):
|
if gajim.jid_is_transport(j):
|
||||||
type_ = gajim.get_transport_name_from_jid(j, False)
|
type_ = gajim.get_transport_name_from_jid(j, False)
|
||||||
|
if not type_:
|
||||||
|
continue
|
||||||
if self.agents.has_key(type_):
|
if self.agents.has_key(type_):
|
||||||
self.agents[type_].append(j)
|
self.agents[type_].append(j)
|
||||||
else:
|
else:
|
||||||
|
@ -532,6 +534,9 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
|
||||||
for type_ in self.agents:
|
for type_ in self.agents:
|
||||||
if type_ == 'jabber':
|
if type_ == 'jabber':
|
||||||
continue
|
continue
|
||||||
|
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']
|
img = gajim.interface.roster.transports_state_images['16'][type_]['online']
|
||||||
if type_ in uf_type:
|
if type_ in uf_type:
|
||||||
liststore.append([uf_type[type_], img.get_pixbuf(), type_])
|
liststore.append([uf_type[type_], img.get_pixbuf(), type_])
|
||||||
|
|
Loading…
Reference in New Issue