mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: check aliases from KImageIO::isSupported()
because MIME strings (those from shared-mime-info package for example) tend to change and exact MIME string match is unreliable Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fa0eed0087
commit
6f106c7068
1 changed files with 5 additions and 0 deletions
|
@ -100,6 +100,11 @@ bool KImageIO::isSupported(const QString &mimeType, Mode mode)
|
|||
if (mimeType == mime) {
|
||||
return true;
|
||||
}
|
||||
// check aliases
|
||||
const KMimeType::Ptr kmimetype = KMimeType::mimeType(mime);
|
||||
if (kmimetype && kmimetype->is(mimeType)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue