D13315: Detect mime type of local files based on their contents

Miklós Máté noreply at phabricator.kde.org
Sun Jun 3 19:51:11 UTC 2018


miklosm created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: kde-frameworks-devel.
miklosm requested review of this revision.

REVISION SUMMARY
  KFileItem::determineMimeType() is an explicit order to thoroughly detect the file type, so the result of the previous detections must be ignored. The indentation should be fixed after the if block is removed, I just didn't want to complicate this patch.
  
  I also removed an unneeded const_cast.
  
  This is part of the fix for https://bugs.kde.org/show_bug.cgi?id=220496

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D13315

AFFECTED FILES
  src/core/kfileitem.cpp

To: miklosm
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180603/dac66cd1/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list