diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-03-21 23:19:18 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-03-21 23:19:18 +0100 |
commit | c87af215e10223e140ddafaa4534bb53629002d7 (patch) | |
tree | 8c530bd7609067ae545aaf437aec9d950211c41a /src/timeline | |
parent | Properly fix image uploads without image/* format (diff) | |
download | nheko-c87af215e10223e140ddafaa4534bb53629002d7.tar.xz |
Actually pass the mimetype we intended
Diffstat (limited to 'src/timeline')
-rw-r--r-- | src/timeline/InputBar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 2d29dbbd..b1877cd7 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -164,7 +164,7 @@ InputBar::insertMimeData(const QMimeData *md) qvariant_cast<QImage>(md->imageData()).save(&buffer, "PNG"); QMimeData d; d.setData(QStringLiteral("image/png"), ba); - startUploadFromMimeData(d, image.first()); + startUploadFromMimeData(d, QStringLiteral("image/png")); } else { startUploadFromMimeData(*md, image.first()); } |