diff options
author | Kirill Burtsev <kirill.burtsev@qt.io> | 2020-02-12 16:15:34 +0100 |
---|---|---|
committer | Kirill Burtsev <kirill.burtsev@qt.io> | 2020-02-26 12:13:40 +0000 |
commit | df5d831bae99662fab43ed2628187113c18aac2c (patch) | |
tree | 62e24e3c05d6d9c1f90834523b476651536b712d /src/core/web_contents_adapter.h | |
parent | 08d1d866107b82525f5c1ec83f179c58ee7e6b97 (diff) |
Clear previous page text selection on new navigation unconditionally
Remove code duplication on triggering new url load, and use direct
code to clear SelectedText instead of CollapseSelection as it assumes
focused frame and might be ignored.
Fixes: QTBUG-81574
Change-Id: I01cf02967e118f407c8a3997e176d5b258478a5a
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/web_contents_adapter.h')
-rw-r--r-- | src/core/web_contents_adapter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.h b/src/core/web_contents_adapter.h index 11f8f9cb1..f8f147f9a 100644 --- a/src/core/web_contents_adapter.h +++ b/src/core/web_contents_adapter.h @@ -229,6 +229,7 @@ public: void focusIfNecessary(); bool isFindTextInProgress() const; bool hasFocusedFrame() const; + void resetSelection(); // meant to be used within WebEngineCore only void initialize(content::SiteInstance *site); |