https://bugs.kde.org/show_bug.cgi?id=329140

Arjen Hiemstra <ahiems...@heimr.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/gwenview/commit/6a7939
                   |                            |1a9ab68bec839897369c665ee2e
                   |                            |3afe7e5
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Arjen Hiemstra <ahiems...@heimr.nl> ---
Git commit 6a79391a9ab68bec839897369c665ee2e3afe7e5 by Arjen Hiemstra.
Committed on 29/04/2021 at 09:29.
Pushed by ahiemstra into branch 'master'.

Prefer mime type from content over file name when loading

QMimeDatabase::mimeTypeForFileNameAndData() will prefer using the
filename for mime type determination. This allow it to be fooled when
the filename is something different than the contents. To avoid this,
reverse the logic and first try to determine the mimetype from the
file's contents and only use filename if that fails.

M  +7    -4    lib/document/loadingdocumentimpl.cpp

https://invent.kde.org/graphics/gwenview/commit/6a79391a9ab68bec839897369c665ee2e3afe7e5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to