Skip to content
Snippets Groups Projects
Commit 518a4877 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

add_contact window is better filled

parent 928af2fa
No related branches found
No related tags found
No related merge requests found
......@@ -271,9 +271,14 @@ def __init__(self, plugin, account, jid = None):
if jid:
self.xml.get_widget('jid_entry').set_text(jid)
jid_splited = jid.split('@')
self.xml.get_widget('uid_entry').set_text(jid_splited[0])
if jid_splited[1] in jid_agents:
uid = jid_splited[0].replace('%', '@')
self.xml.get_widget('uid_entry').set_text(uid)
protocol_combobox.set_active(jid_agents.index(jid_splited[1]) + 1)
else:
self.xml.get_widget('uid_entry').set_text(jid)
protocol_combobox.set_active(0)
self.set_nickname()
self.group_comboboxentry = self.xml.get_widget('group_comboboxentry')
liststore = gtk.ListStore(str)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment