From 806742abd3ec3223e78f799bc7e6a8d0e7288edb Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 16 Mar 2015 07:54:39 +0100 Subject: [PATCH] Move new entries to the end when loading history. Before, if an URL was present early in the history and then again later, we didn't move it to the end of the OrderedDict. This means it won't be loaded in the completion. --- qutebrowser/browser/history.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/browser/history.py b/qutebrowser/browser/history.py index 32523c1b1..b19f351ae 100644 --- a/qutebrowser/browser/history.py +++ b/qutebrowser/browser/history.py @@ -92,6 +92,7 @@ class WebHistory(QWebHistoryInterface): # old_urls to be lists or change HistoryEntry to have a # list of atimes. self._history_dict[url] = HistoryEntry(atime, url) + self._history_dict.move_to_end(url) self._new_history = [] self._saved_count = 0 objreg.get('save-manager').add_saveable(