diff options
author | Jie Liu <[email protected]> | 2025-05-30 08:29:05 +0800 |
---|---|---|
committer | Jie Liu <[email protected]> | 2025-06-03 09:19:03 +0000 |
commit | 1c87e9a60a34210d44d217c51fbfbf41409587c3 (patch) | |
tree | 0a97d4e6f3c8503ef5f89064bdccf5318bfd7770 | |
parent | d687ac6d3eeba48ae7b48fed037e61e22325634a (diff) |
Change-Id: I20d26af8bdbf5f35ae78c984eb21e91f6fcc72b4
Reviewed-by: David Edmundson <[email protected]>
-rw-r--r-- | src/plugins/platforms/wayland/qwaylanddatacontrolv1.cpp | 3 |
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); } |