summaryrefslogtreecommitdiffstats
path: root/src/webenginequick
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-09 13:43:09 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-10 07:03:36 +0000
commit179f9d3cc462bbc78e825f160837b921281c4048 (patch)
treecd274ee9a991cdaaa172645e3c47004b3a4eb0a9 /src/webenginequick
parentd5e7e1ccd1921ce8dc13aa72d96bd8d339439e4f (diff)
Fix drag and drop again
Return the right QObjects Fixes: QTBUG-96308 Change-Id: If04be10fe19db6b8c0552c7df588961c711c1250 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io> (cherry picked from commit e85e4ab275fb0a0c072f19ed3d5c5b5b46de8321) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/webenginequick')
-rw-r--r--src/webenginequick/api/qquickwebengineview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/webenginequick/api/qquickwebengineview.cpp b/src/webenginequick/api/qquickwebengineview.cpp
index ae01aad23..8f02648e8 100644
--- a/src/webenginequick/api/qquickwebengineview.cpp
+++ b/src/webenginequick/api/qquickwebengineview.cpp
@@ -1208,11 +1208,11 @@ QObject *QQuickWebEngineViewPrivate::dragSource() const
{
// QTBUG-57516
// Fixme: This is just a band-aid workaround.
-#if !QT_CONFIG(draganddrop)
- return QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::MultipleWindows) ?
- q_ptr->window : nullptr;
+#if QT_CONFIG(draganddrop)
+ return QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::MultipleWindows) ?
+ q_ptr : nullptr;
#else
- return nullptr;
+ return nullptr;
#endif
}