Commit d41ac0f9 authored by Smit Mehta's avatar Smit Mehta
Browse files

Temporary fix : Added a mutex lock.

Not a problem with actiontread.cpp and batchdialog.cpp
TODO : figure out why multi-threading does unexpected stuff in dngprocessor.
CCBUG:303980
parent fd354a34
......@@ -156,7 +156,7 @@ void Task::run()
QFileInfo fi(m_url.toLocalFile());
destPath = fi.absolutePath() + QString("/") + ".kipi-dngconverter-tmp-" +
QString::number(QDateTime::currentDateTime().toTime_t()) + QString(m_url.fileName());
m_d->mutex.lock();
m_d->dngProcessor.reset();
m_d->dngProcessor.setInputFile(m_url.toLocalFile());
m_d->dngProcessor.setOutputFile(destPath);
......@@ -165,6 +165,7 @@ void Task::run()
m_d->dngProcessor.setUpdateFileDate(m_d->updateFileDate);
m_d->dngProcessor.setPreviewMode(m_d->previewMode);
ret = m_d->dngProcessor.convert();
m_d->mutex.unlock();
}
ActionData ad2;
......
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