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++

Fix tail not being created when closing without saving

Luna Lovecrafte2b55772ef2c
diff --git a/plugins/dockers/recorder/recorder_writer.cpp b/plugins/dockers/recorder/recorder_writer.cpp
index 541cac00e6..877b11b7b2 100644
--- a/plugins/dockers/recorder/recorder_writer.cpp
+++ b/plugins/dockers/recorder/recorder_writer.cpp
@@ -681,7 +681,7 @@ void RecorderWriterManager::onTimer()
// take snapshots only if main window is active
// else some dialogs like filters may disappear when canvas->image()->lock() is called
- if (qobject_cast<KisMainWindow*>(QApplication::activeWindow()) == nullptr)
+ if (qobject_cast<KisMainWindow *>(QApplication::activeWindow()) == nullptr && !d->captureTail) {
return;
if ((!d->settings.recordIsolateLayerMode) &&