Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libimageviewer/unionimage/baseutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,14 @@ void copyImageToClipboard(const QStringList &paths, const QImage &sourceImage)
gnomeFormat.remove(gnomeFormat.length() - 1, 1);
newMimeData->setData("x-special/gnome-copied-files", gnomeFormat);

// Warning: 会导致 1070 wayland 下拷贝无图片显示,此修改和 bug 191601 有关,仅在定制镜像保留。
Q_UNUSED(sourceImage);
#if 0
// Copy Image Data
if (!sourceImage.isNull() && checkWayland()) {
newMimeData->setImageData(sourceImage.scaled(200, 200, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation));
}
#endif

// Set the mimedata
cb->setMimeData(newMimeData, QClipboard::Clipboard);
Expand Down