2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Use gtk not only to get image from clipboard, but also to set

This commit is contained in:
Ilya Fedin
2020-12-02 10:16:25 +04:00
committed by John Preston
parent 61b7b5d03b
commit f88c132c96
15 changed files with 112 additions and 21 deletions

View File

@@ -767,7 +767,7 @@ bool SendFilesBox::addFiles(not_null<const QMimeData*> data) {
if (result.error == Ui::PreparedList::Error::None) {
return result;
} else if (data->hasImage()) {
auto image = Platform::GetImageFromClipboard();
auto image = Platform::GetClipboardImage();
if (image.isNull()) {
image = qvariant_cast<QImage>(data->imageData());
}