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.
This commit is contained in:
Florian Bruhin 2015-03-16 07:54:39 +01:00
parent 3df5e13c65
commit 806742abd3

View File

@ -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(