diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index c919eac5c..f1eee3983 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -97,6 +97,7 @@ Fixed ~~~~~ - Various subtle keyboard focus issues. +- Workaround for a Qt bug which preserves searches between page loads. Removed ~~~~~~~ diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index 86f5e08c8..6739c2f66 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -1137,11 +1137,10 @@ class WebEngineTab(browsertab.AbstractTab): @pyqtSlot() def _on_load_started(self): """Clear search when a new load is started if needed.""" - if (qtutils.version_check('5.9', compiled=False) and - not qtutils.version_check('5.9.2', compiled=False)): - # WORKAROUND for - # https://bugreports.qt.io/browse/QTBUG-61506 - self.search.clear() + # WORKAROUND for + # https://bugreports.qt.io/browse/QTBUG-61506 + # (seems to be back in later Qt versions as well) + self.search.clear() super()._on_load_started() self.data.netrc_used = False