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:
parent
2029f52fdc
commit
3399f2df96
@ -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
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user