Commit 60eb490f authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

factorize

parent ff1972b0
......@@ -45,6 +45,7 @@
#include "kpimageslist.h"
#include "kpaboutdata.h"
#include "kpmetadata.h"
#include "kpprogresswidget.h"
// Local includes
......@@ -273,9 +274,7 @@ void DsWindow::uploadNextPhoto()
}
// check if we have to RAW file -> use preview image then
QString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
QFileInfo fileInfo(imgPath);
if( rawFilesExt.toUpper().contains(fileInfo.suffix().toUpper()) )
if( KPMetadata::isRawFile(imgPath) )
{
massageRequired = DsWindow::ImageIsRaw;
}
......
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