Skip to content
Commit 78f47b4d authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Emit the openUrlRequest from a QTimer::singleShot

Middle-clicking on a link in a WebEnginePage correctly opens the link in
a new tab, but, incorrectly, leaves the focus in the location bar
instead of giving it to the new widget. Using a QTimer::singleShot to
ensure that the request to open the URL is made after all events have
been processed prevents this issue.

Note that this is only a workaround: it doesn't fix the true cause of
the problem.

1f014821
parent 97c5f23b
Pipeline #262427 passed with stage
in 6 minutes and 49 seconds
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