mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Don't treat .gif as "small image".
This commit is contained in:
parent
5e32602f4a
commit
ca47440950
1 changed files with 7 additions and 3 deletions
|
@ -152,9 +152,13 @@ MimeDataState ComputeMimeDataState(const QMimeData *data) {
|
|||
} else if (allAreSmallImages) {
|
||||
if (filesize > Images::kReadBytesLimit) {
|
||||
allAreSmallImages = false;
|
||||
} else if (!FileIsImage(file, MimeTypeForFile(info).name())
|
||||
|| !QImageReader(file).canRead()) {
|
||||
allAreSmallImages = false;
|
||||
} else {
|
||||
const auto mime = MimeTypeForFile(info).name();
|
||||
if (mime == u"image/gif"_q
|
||||
|| !FileIsImage(file, mime)
|
||||
|| !QImageReader(file).canRead()) {
|
||||
allAreSmallImages = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue