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

factorize

parent 7e8712ac
......@@ -553,10 +553,7 @@ AddPhotoCommand::AddPhotoCommand(const QString& tmpDir, const QString& path, uns
m_tmpDir(tmpDir),
m_imagePath(path)
{
QString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
QFileInfo fileInfo(path);
bool isRaw = rawFilesExt.toUpper().contains(fileInfo.suffix().toUpper());
bool isRaw = KPMetadata::isRawFile(path);
if (isRaw)
{
kDebug() << "Get RAW preview " << 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