insensitivie jid_entry when we add a contact from which we know the jid (right click on email -> add contact, accept a sub request, ...)

This commit is contained in:
Yann Leboulanger 2005-11-07 21:30:35 +00:00
parent bd868245e0
commit b8476426a2
1 changed files with 2 additions and 0 deletions

View File

@ -312,6 +312,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
self.fill_jid() self.fill_jid()
if jid: if jid:
self.jid_entry.set_text(jid) self.jid_entry.set_text(jid)
self.jid_entry.set_sensitive(False)
jid_splited = jid.split('@') jid_splited = jid.split('@')
if jid_splited[1] in jid_agents: if jid_splited[1] in jid_agents:
uid = jid_splited[0].replace('%', '@') uid = jid_splited[0].replace('%', '@')
@ -321,6 +322,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
self.uid_entry.set_text(jid) self.uid_entry.set_text(jid)
self.protocol_combobox.set_active(0) self.protocol_combobox.set_active(0)
self.set_nickname() self.set_nickname()
self.nickname_entry.grab_focus()
self.group_comboboxentry = self.xml.get_widget('group_comboboxentry') self.group_comboboxentry = self.xml.get_widget('group_comboboxentry')
liststore = gtk.ListStore(str) liststore = gtk.ListStore(str)