mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
gwenview: attempt to load all images that are not one of the static MIME types
fixes loading of HEIF images for example which ImageMagick can load but is not registered from gvpart.desktop and gwenview.desktop Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7d6cd5a36e
commit
5b6bfc3935
1 changed files with 5 additions and 2 deletions
|
@ -154,10 +154,13 @@ Kind mimeTypeKind(const QString& mimeType)
|
|||
if (svgImageMimeTypes().contains(mimeType)) {
|
||||
return KIND_IMAGE;
|
||||
}
|
||||
if (mimeType.startsWith(QLatin1String("inode/directory"))) {
|
||||
// if it is image but it is not one of the static MIME types attempt to open it anyway
|
||||
if (mimeType.startsWith(QLatin1String("image/"))) {
|
||||
return KIND_IMAGE;
|
||||
}
|
||||
if (mimeType == QLatin1String("inode/directory")) {
|
||||
return KIND_DIR;
|
||||
}
|
||||
|
||||
return KIND_FILE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue