Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Block animation frame generation on the destruction of the image

Dmitry Kazakov4a0b57345f5d
diff --git a/libs/ui/KisDocument.cpp b/libs/ui/KisDocument.cpp
index e294759537..fa1930b483 100644
--- a/libs/ui/KisDocument.cpp
+++ b/libs/ui/KisDocument.cpp
@@ -675,6 +675,8 @@ KisDocument::~KisDocument()
delete d->koShapeController;
if (d->image) {
+ d->image->animationInterface()->blockBackgroundFrameGeneration();
+
d->image->notifyAboutToBeDeleted();
/**