Emit predicted_navigation when loading sessions

This avoids reloads (because of changed settings) after a session has been
loaded.

Related to #3718
This commit is contained in:
Florian Bruhin 2018-03-15 14:51:03 +01:00
parent 1e4b80d1ac
commit 6f8eb419ae
2 changed files with 6 additions and 0 deletions

View File

@ -506,6 +506,9 @@ class WebEngineHistory(browsertab.AbstractHistory):
return qtutils.deserialize(data, self._history)
def load_items(self, items):
if items:
self._tab.predicted_navigation.emit(items[-1].url)
stream, _data, cur_data = tabhistory.serialize(items)
qtutils.deserialize_stream(stream, self._history)

View File

@ -537,6 +537,9 @@ class WebKitHistory(browsertab.AbstractHistory):
return qtutils.deserialize(data, self._history)
def load_items(self, items):
if items:
self._tab.predicted_navigation.emit(items[-1].url)
stream, _data, user_data = tabhistory.serialize(items)
qtutils.deserialize_stream(stream, self._history)
for i, data in enumerate(user_data):