Don't emit predicted_navigation for reloads at all

When we reload a page because of a config change, we won't get another
titleChanged signal (at least sometimes).

Also, the predicted_navigation signal is worthless when reloading anyways, as
we're going to load the same URL and not something different.

Fixes #3718
This commit is contained in:
Florian Bruhin 2018-03-14 18:12:29 +01:00
parent 724e531087
commit a22f973c99
2 changed files with 0 additions and 6 deletions

View File

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

View File

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