Fixed MIME checking for files when edit media.

This commit is contained in:
23rd 2019-04-04 10:05:27 +03:00
parent 456a949d01
commit 78227cd947
1 changed files with 1 additions and 4 deletions

View File

@ -343,11 +343,8 @@ void EditCaptionBox::updateEditPreview() {
const auto fileinfo = QFileInfo(file->path); const auto fileinfo = QFileInfo(file->path);
const auto filename = fileinfo.fileName(); const auto filename = fileinfo.fileName();
const auto mimeType = Core::MimeTypeForFile(fileinfo).name();
if (!file->path.isEmpty()) { _isImage = fileIsImage(filename, file->mime);
_isImage = fileIsImage(filename, mimeType);
}
_isAudio = false; _isAudio = false;
_animated = false; _animated = false;
_photo = false; _photo = false;