Always clear searches between page loads

Looks like this wasn't properly fixed in Qt for some reason.
Fixes #3693
See #2728 and bef372e5f5
This commit is contained in:
Florian Bruhin 2018-06-17 21:03:44 +02:00
parent 2029f52fdc
commit 3399f2df96
2 changed files with 5 additions and 5 deletions

View File

@ -97,6 +97,7 @@ Fixed
~~~~~ ~~~~~
- Various subtle keyboard focus issues. - Various subtle keyboard focus issues.
- Workaround for a Qt bug which preserves searches between page loads.
Removed Removed
~~~~~~~ ~~~~~~~

View File

@ -1137,11 +1137,10 @@ class WebEngineTab(browsertab.AbstractTab):
@pyqtSlot() @pyqtSlot()
def _on_load_started(self): def _on_load_started(self):
"""Clear search when a new load is started if needed.""" """Clear search when a new load is started if needed."""
if (qtutils.version_check('5.9', compiled=False) and # WORKAROUND for
not qtutils.version_check('5.9.2', compiled=False)): # https://bugreports.qt.io/browse/QTBUG-61506
# WORKAROUND for # (seems to be back in later Qt versions as well)
# https://bugreports.qt.io/browse/QTBUG-61506 self.search.clear()
self.search.clear()
super()._on_load_started() super()._on_load_started()
self.data.netrc_used = False self.data.netrc_used = False