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++
Make sure the jobs are delivered
Luna Lovecrafteb0218d41571
diff --git a/plugins/dockers/recorder/recorder_writer.cpp b/plugins/dockers/recorder/recorder_writer.cppindex 3939f48a50..6807305912 100644--- a/plugins/dockers/recorder/recorder_writer.cpp+++ b/plugins/dockers/recorder/recorder_writer.cpp@@ -434,8 +434,8 @@ public:bool alreadyWarn = false;bool alreadyErr = false;- for (auto &el : writerPool) {- if (el.inUse && !el.writer->isActive()) {+ for (int i = 0; i < writerPool.count(); i++) {+ if (writerPool[i].inUse && !writerPool[i].writer->isActive()) {// There's a pending job, but the writer didn't recieve the signal yet// Wait until all the jobs processes@@ -444,8 +444,10 @@ public:// Make sure the signals are deliveredQApplication::processEvents(QEventLoop::ExcludeUserInputEvents);- //we can exit the loop, all the signals have been delivered and we don't need to check further- break;+ //Iterate over and over to make 100% sure that everything is processed+ i = 0;+ //Additional waiting JUST in case+ QThread::currentThread()->msleep(100);}}