Author: asterix Date: 2007-03-31 14:43:07 +0200 (Sat, 31 Mar 2007) New Revision: 8059
Modified: trunk/src/dialogs.py Log: fix wrong var name. fixes #2750
Modified: trunk/src/dialogs.py =================================================================== --- trunk/src/dialogs.py 2007-03-31 12:22:38 UTC (rev 8058) +++ trunk/src/dialogs.py 2007-03-31 12:43:07 UTC (rev 8059) @@ -463,21 +463,21 @@ self.available_types = [] for acct in accounts: for j in gajim.contacts.get_jid_list(acct): - contact = gajim.contacts.get_first_contact_from_jid(acct, j) if gajim.jid_is_transport(j): - type_ = gajim.get_transport_name_from_jid(j) + type_ = gajim.get_transport_name_from_jid(j, False) if self.agents.has_key(type_): self.agents[type_].append(j) else: self.agents[type_] = [j] # Now add the one to which we can register for acct in accounts: - for type_ in gajim.connections[account].available_transports: + for type_ in gajim.connections[acct].available_transports: if type_ in self.agents: continue self.agents[type_] = [] - for jid_ in gajim.connections[account].available_transports[type_]: - self.agents[type_].append(jid_) + for jid_ in gajim.connections[acct].available_transports[type_]: + if not jid_ in self.agents[type_]: + self.agents[type_].append(jid_) self.available_types.append(type_) liststore = gtk.ListStore(str) self.group_comboboxentry.set_model(liststore)