Add predicted_navigation for reload()

This should avoid a double-reload for 'tsh' etc.
This commit is contained in:
Florian Bruhin 2018-03-07 23:54:58 +01:00
parent b9d26ee268
commit 87c6644751
2 changed files with 2 additions and 0 deletions

View File

@ -706,6 +706,7 @@ class WebEngineTab(browsertab.AbstractTab):
self._widget.shutdown()
def reload(self, *, force=False):
self.predicted_navigation.emit(self.url())
if force:
action = QWebEnginePage.ReloadAndBypassCache
else:

View File

@ -701,6 +701,7 @@ class WebKitTab(browsertab.AbstractTab):
self._widget.shutdown()
def reload(self, *, force=False):
self.predicted_navigation.emit(self.url())
if force:
action = QWebPage.ReloadAndBypassCache
else: