Commit 53141940 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files


parent efb9ff14
......@@ -124,9 +124,7 @@ QImage TPhoto::loadPhoto()
QImage photo;
// Check if RAW file.
QString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
QFileInfo fileInfo(filename.path());
if (rawFilesExt.toUpper().contains( fileInfo.suffix().toUpper()))
if (KPMetadata::isRawFile(filename))
KDcrawIface::KDcraw::loadDcrawPreview(photo, filename.path());
photo.load(filename.path()); // PENDING(blackie) handle URL
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment