Added back the processEvents
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
8d4f508cc6
commit
1ac9757a86
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user