Commit 889b4b9f authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

factoring

parent bd7e2ae1
......@@ -765,12 +765,10 @@ void SmugWindow::uploadNextPhoto()
m_widget->progressBar()->setMaximum(m_imagesTotal);
m_widget->progressBar()->setValue(m_imagesCount);
// check if we have to RAW file -> use preview image then
QString rawFilesExt(KDcrawIface::KDcraw::rawFiles());
QFileInfo fileInfo(imgPath);
bool isRAW = rawFilesExt.toUpper().contains(fileInfo.suffix().toUpper());
bool res;
// check if we have to RAW file -> use preview image then
bool isRAW = KPMetadata::isRawFile(imgPath);
if (isRAW || m_widget->m_resizeChB->isChecked())
{
if (!prepareImageForUpload(imgPath, isRAW))
......
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