recognize correctly transport's jid in add contact dialog
This commit is contained in:
		
							parent
							
								
									59d5f23182
								
							
						
					
					
						commit
						478579cde1
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -497,7 +497,9 @@ _('Please fill in the data of the contact you want to add in account %s') %accou | |||
| 		self.protocol_jid_combobox.set_model(liststore) | ||||
| 		self.xml.signal_autoconnect(self) | ||||
| 		if jid: | ||||
| 			type_ = gajim.get_transport_name_from_jid(jid) or 'jabber' | ||||
| 			type_ = gajim.get_transport_name_from_jid(jid) | ||||
| 			if not type_: | ||||
| 				type_ = 'jabber' | ||||
| 			if type_ == 'jabber': | ||||
| 				self.uid_entry.set_text(jid) | ||||
| 			else: | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue