Home
Phabricator
Search
Log In
Paste
P173
Masterwork From Distant Lands
Active
Public
Actions
Authored by
dkazakov
on Mar 5 2018, 10:23 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/libs/ui/KisDocument.cpp b/libs/ui/KisDocument.cpp
index f173fb9..5d29f2a 100644
--- a/libs/ui/KisDocument.cpp
+++ b/libs/ui/KisDocument.cpp
@@ -722,9 +722,13 @@ bool KisDocument::initiateSavingInBackground(const QString actionName,
exportConfiguration);
if (!started) {
- d->backgroundSaveDocument.take()->deleteLater();
- d->savingMutex.unlock();
- d->backgroundSaveJob = KritaUtils::ExportFileJob();
+ // the state should have been deinitialized in slotChildCompletedSavingInBackground()
+
+ KIS_SAFE_ASSERT_RECOVER (!d->backgroundSaveDocument && !d->backgroundSaveJob.isValid()) {
+ d->backgroundSaveDocument.take()->deleteLater();
+ d->savingMutex.unlock();
+ d->backgroundSaveJob = KritaUtils::ExportFileJob();
+ }
}
return started;
dkazakov
edited the content of this paste.
(Show Details)
Mar 5 2018, 10:23 AM
dkazakov
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
dkazakov
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment