wayland: fix image copy failed problem on data control

Change-Id: I20d26af8bdbf5f35ae78c984eb21e91f6fcc72b4
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Jie Liu 2025-05-30 08:29:05 +08:00
parent d687ac6d3e
commit 1c87e9a60a

View File

@ -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);
}