Skip to content
Snippets Groups Projects
Commit e5b2e387 authored by jimpp's avatar jimpp
Browse files

Fix regression introduced in [9727]. Do not fail if the jid line contain 'Enter

JID or Contact name' or something at opening.
parent d1762dd9
No related branches found
No related tags found
No related merge requests found
......@@ -156,9 +156,12 @@ class HistoryWindow:
keys = self.completion_dict.keys()
# Move the actual jid at first so we load history faster
actual_jid = self.jid_entry.get_text().decode('utf-8')
if actual_jid in keys:
keys.remove(actual_jid)
keys.insert(0, actual_jid)
if actual_jid.find('@') > 0:
# it's not 'Enter JID or Contact name' or something, but a real jid,
# we can really move it at first
if actual_jid in keys:
keys.remove(actual_jid)
keys.insert(0, actual_jid)
# Map jid to info tuple
# Warning : This for is time critical with big DB
for key in keys:
......
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