Commit 74160869 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Add sanity check for the image being idle after cloning

CCBUG:404742
parent f984eab0
......@@ -820,6 +820,10 @@ bool KisDocument::initiateSavingInBackground(const QString actionName,
}
}
KIS_SAFE_ASSERT_RECOVER(clonedDocument->image()->isIdle()) {
waitForImage(clonedDocument->image());
}
KIS_ASSERT_RECOVER_RETURN_VALUE(!d->backgroundSaveDocument, false);
KIS_ASSERT_RECOVER_RETURN_VALUE(!d->backgroundSaveJob.isValid(), false);
d->backgroundSaveDocument.reset(clonedDocument.take());
......
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