Added back the processEvents

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-10-19 21:51:51 +03:00
parent 8d4f508cc6
commit 1ac9757a86
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
2 changed files with 3 additions and 5 deletions

View File

@ -35,6 +35,7 @@
*/
#include "ConcurrentTask.h"
#include <QCoreApplication>
#include <QDebug>
#include "tasks/Task.h"
@ -132,6 +133,8 @@ void ConcurrentTask::executeNextSubTask()
}
startSubTask(m_queue.dequeue());
QCoreApplication::processEvents();
}
void ConcurrentTask::startSubTask(Task::Ptr next)

View File

@ -34,7 +34,6 @@
*/
#include "MultipleOptionsTask.h"
#include <QCoreApplication>
#include <QDebug>
MultipleOptionsTask::MultipleOptionsTask(QObject* parent, const QString& task_name) : ConcurrentTask(parent, task_name, 1) {}
@ -53,10 +52,6 @@ void MultipleOptionsTask::executeNextSubTask()
}
ConcurrentTask::executeNextSubTask();
// not sure why this is needed here but tests fail without it
// as the MultipleOptionsTask is yet to be used not sure if
// it works correcly
QCoreApplication::processEvents();
}
void MultipleOptionsTask::updateState()