summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJie Liu <[email protected]>2025-05-30 08:29:05 +0800
committerJie Liu <[email protected]>2025-06-03 09:19:03 +0000
commit1c87e9a60a34210d44d217c51fbfbf41409587c3 (patch)
tree0a97d4e6f3c8503ef5f89064bdccf5318bfd7770
parentd687ac6d3eeba48ae7b48fed037e61e22325634a (diff)
wayland: fix image copy failed problem on data controlHEADdev
Change-Id: I20d26af8bdbf5f35ae78c984eb21e91f6fcc72b4 Reviewed-by: David Edmundson <[email protected]>
-rw-r--r--src/plugins/platforms/wayland/qwaylanddatacontrolv1.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/qwaylanddatacontrolv1.cpp b/src/plugins/platforms/wayland/qwaylanddatacontrolv1.cpp
index 294c74c989b..db13d248b42 100644
--- a/src/plugins/platforms/wayland/qwaylanddatacontrolv1.cpp
+++ b/src/plugins/platforms/wayland/qwaylanddatacontrolv1.cpp
@@ -133,7 +133,8 @@ QWaylandDataControlSourceV1::QWaylandDataControlSourceV1(QWaylandDataControlMana
{
if (!mimeData)
return;
- for (auto &format : mimeData->formats())
+ const auto formats = QInternalMimeData::formatsHelper(mimeData);
+ for (const QString &format : formats)
offer(format);
}