diff options
| author | Ismael Asensio <[email protected]> | 2020-06-06 18:40:03 +0200 |
|---|---|---|
| committer | Ismael Asensio <[email protected]> | 2020-06-06 18:40:03 +0200 |
| commit | f7a3318fa51dc340e8615009c43ba3a53d9c7012 (patch) | |
| tree | 2116a033fd75c6ad1c7baab03e417536945ce7c8 /src/panels/information/informationpanelcontent.cpp | |
| parent | f987a1c404663f8f8964596548294dc1ae31f377 (diff) | |
Detect animated format using mimeType instead of file path
This allows to extend the functionality to non-local files and avoids a warning
on such files (`QFSFileEngine::open: No file name specified`)
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index a0c872560..9db7f8bb7 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -236,7 +236,7 @@ void InformationPanelContent::refreshPreview() refreshPixmapView(); const QString mimeType = m_item.mimetype(); - const bool isAnimatedImage = m_preview->isAnimatedImage(itemUrl.toLocalFile()); + const bool isAnimatedImage = m_preview->isAnimatedMimeType(mimeType); m_isVideo = !isAnimatedImage && mimeType.startsWith(QLatin1String("video/")); bool usePhonon = m_isVideo || mimeType.startsWith(QLatin1String("audio/")); |
