Commit f795cdbf authored by Dmitry Kazakov's avatar Dmitry Kazakov Committed by Halla Rempt

Fix randomly closing opened actions when autosaving

lock() call requests all the strokes to finish, which is not
what we want during autosave. Therefore, we just forbid autosave
while some action is running.

This patch will also fix some bugs with random hickups when doing
strokes (when autosave does something in the background).
parent ec931ad2
......@@ -1674,7 +1674,7 @@ bool KisDocument::prepareLocksForSaving()
if (locker.successfullyLocked()) {
copiedImage = d->image->clone(true);
else {
else if (!isAutosaving()) {
// even though it is a recovery operation, we should ensure we do not enter saving twice!
std::unique_lock<StdLockableWrapper<QMutex>> l(d->savingLock, std::try_to_lock);
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