Author: asterix Date: 2007-07-05 11:21:31 +0200 (Thu, 05 Jul 2007) New Revision: 8364
Modified: trunk/src/dialogs.py Log: fix the show transport icon in add contact dialog
Modified: trunk/src/dialogs.py =================================================================== --- trunk/src/dialogs.py 2007-07-05 08:59:47 UTC (rev 8363) +++ trunk/src/dialogs.py 2007-07-05 09:21:31 UTC (rev 8364) @@ -498,6 +498,8 @@ for j in gajim.contacts.get_jid_list(acct): if gajim.jid_is_transport(j): type_ = gajim.get_transport_name_from_jid(j, False) + if not type_: + continue if self.agents.has_key(type_): self.agents[type_].append(j) else: @@ -532,7 +534,10 @@ for type_ in self.agents: if type_ == 'jabber': continue - img = gajim.interface.roster.transports_state_images['16'][type_]['online'] + 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_]) else: