don't allow empty string in new chat dialog entry completion. Fixes #7760

This commit is contained in:
Yann Leboulanger 2014-06-01 22:32:44 +02:00
parent e637d8ed15
commit d026f79428
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ def get_contact_dict_for_account(account):
del contacts_dict[name]
contacts_dict['%s (%s)' % (name, contact1.jid)] = contact1
contacts_dict['%s (%s)' % (name, jid)] = contact
else:
elif contact.name:
if contact.name == gajim.get_nick_from_jid(jid):
del contacts_dict[jid]
contacts_dict[name] = contact