Commit bfc2683a authored by Christophe Chapuis's avatar Christophe Chapuis Committed by Allan Sandfeld Jensen
Browse files

Fix crash when using openIn on newly created view


When a link triggers a NewViewRequest, and the latter creates
a new window with a new WebEngineView inside, the "adapter" pointer
can still be NULL when the adoptWebContents is called by openIn.
Therefore is it necessary to test the adapter pointer before using it.

Task-number: QTBUG-55765
Change-Id: Ia1a299dd65c229705462c9444b81d7b26567fc09
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
parent 20576344
Showing with 4 additions and 2 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment