diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp index 39d8d8894..306fdff8c 100644 --- a/src/lib/webengine/webview.cpp +++ b/src/lib/webengine/webview.cpp @@ -1279,8 +1279,8 @@ bool WebView::eventFilter(QObject *obj, QEvent *event) #if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 12, 0) QPointer child = qobject_cast(static_cast(event)->child()); QTimer::singleShot(0, this, [=]() { - if (child && child->inherits("QtWebEngineCore::RenderWidgetHostViewQtDelegateWidget")) { - m_rwhvqt = child; + if (child && child->inherits("QtWebEngineCore::RenderWidgetHostViewQtDelegateWidget")) { + m_rwhvqt = child; #else QTimer::singleShot(0, this, [this]() { if (focusProxy() && m_rwhvqt != focusProxy()) {