Simpler way to do [9756], thanks steve-e

This commit is contained in:
Jean-Marie Traissard 2008-06-04 18:58:14 +00:00
parent cc307aed70
commit a0f57f5e99
1 changed files with 3 additions and 6 deletions

View File

@ -156,9 +156,6 @@ class HistoryWindow:
keys = self.completion_dict.keys() keys = self.completion_dict.keys()
# Move the actual jid at first so we load history faster # Move the actual jid at first so we load history faster
actual_jid = self.jid_entry.get_text().decode('utf-8') actual_jid = self.jid_entry.get_text().decode('utf-8')
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: if actual_jid in keys:
keys.remove(actual_jid) keys.remove(actual_jid)
keys.insert(0, actual_jid) keys.insert(0, actual_jid)