Commit c803a238 authored by Dmitry Kazakov's avatar Dmitry Kazakov Committed by Ashwin Dhakaita

Add sanity check for the image being idle after cloning

parent e16e9ff5
......@@ -860,6 +860,10 @@ bool KisDocument::initiateSavingInBackground(const QString actionName,
KIS_SAFE_ASSERT_RECOVER(clonedDocument->image()->isIdle()) {
KIS_ASSERT_RECOVER_RETURN_VALUE(!d->backgroundSaveDocument, false);
KIS_ASSERT_RECOVER_RETURN_VALUE(!d->backgroundSaveJob.isValid(), false);
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