Commit 43cba9cc authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix incorrect mutex unlock in thumbs cache

parent bb8e6ffe
......@@ -230,7 +230,7 @@ void ThumbnailCache::storeThumbnail(const QString &binId, int pos, const QImage
std::find(m_storedOnDisk[binId].begin(), m_storedOnDisk[binId].end(), pos) == m_storedOnDisk[binId].end()) {
m_storedOnDisk[binId].push_back(pos);
}
m_mutex.unlock();
locker.unlock();
if (!img.save(thumbFolder.absoluteFilePath(key))) {
qDebug() << ".............\n!!!!!!!! ERROR SAVING THUMB in: " << thumbFolder.absoluteFilePath(key);
}
......
Supports Markdown
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