Actually pass the mimetype we intended

This commit is contained in:
Nicolas Werner 2022-03-21 23:19:18 +01:00
parent e52f90a941
commit c87af215e1
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -164,7 +164,7 @@ InputBar::insertMimeData(const QMimeData *md)
qvariant_cast<QImage>(md->imageData()).save(&buffer, "PNG"); qvariant_cast<QImage>(md->imageData()).save(&buffer, "PNG");
QMimeData d; QMimeData d;
d.setData(QStringLiteral("image/png"), ba); d.setData(QStringLiteral("image/png"), ba);
startUploadFromMimeData(d, image.first()); startUploadFromMimeData(d, QStringLiteral("image/png"));
} else { } else {
startUploadFromMimeData(*md, image.first()); startUploadFromMimeData(*md, image.first());
} }