Fix mime type usage for some MP3 files.

They had "audio/mpeg3" instead of "audio/mp3". Fixes #5392.
This commit is contained in:
John Preston 2018-12-03 19:32:07 +04:00
parent f56d80236e
commit c8a05137f4
1 changed files with 5 additions and 3 deletions

View File

@ -46,12 +46,14 @@ QString MimeType::name() const {
}
MimeType MimeTypeForName(const QString &mime) {
if (mime == qsl("image/webp")) {
if (mime == qstr("image/webp")) {
return MimeType(MimeType::Known::WebP);
} else if (mime == qsl("application/x-tdesktop-theme")) {
} else if (mime == qstr("application/x-tdesktop-theme")) {
return MimeType(MimeType::Known::TDesktopTheme);
} else if (mime == qsl("application/x-tdesktop-palette")) {
} else if (mime == qstr("application/x-tdesktop-palette")) {
return MimeType(MimeType::Known::TDesktopPalette);
} else if (mime == qstr("audio/mpeg3")) {
return MimeType(QMimeDatabase().mimeTypeForName("audio/mp3"));
}
return MimeType(QMimeDatabase().mimeTypeForName(mime));
}