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

Elvis Angelaccio <elvis.angelac...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |elvis.angelac...@kde.org

--- Comment #17 from Elvis Angelaccio <elvis.angelac...@kde.org> ---
(In reply to miklos from comment #13)
> Now I found this again, and I had some time to debug it.
> 
> The file metadata is gathered by FileMetaDataWidget of baloo-widgets, which
> launches an external program (baloo_filemetadata_temp_extractor) to parse
> the file and return its properties, so the file description in the tooltip
> and the information panel is always correct.
> 
> The preview is generated with KIO::PreviewJob(), which gets the mime type of
> the file from its name: kio/src/widgets/previewjob.cpp:304 calls
> kio/src/core/kfileitem.cpp:732, where QMimeDatabase is asked for the mime
> type based on the file name. This is wrong when the file suffix is wrong,
> and apparently there is a different preview generator for jpeg and png.
> 
> I see three possible solutions:
> - QMimeDatabase supports parsing the file to find out its type

Just for the record, QMimeDatabase already has this feature.

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

Reply via email to