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

factorize

parent c1efab61
......@@ -482,8 +482,7 @@ void SimpleViewer::processKUrlList(KUrl::List& images, QDomDocument& xmlDoc,
d->progressWdg->addedAction(i18n("Processing %1", url.fileName()), StartingMessage);
// Check if RAW file.
QString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
if (rawFilesExt.toUpper().contains( fi.suffix().toUpper()))
if (KPMetadata::isRawFile(url))
KDcrawIface::KDcraw::loadDcrawPreview(image, url.path());
else
image.load(url.path());
......
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