fix: prevent stack overflow in ConcurrentTask
Signed-off-by: Lenny McLennington <lenny@sneed.church>
This commit is contained in:
parent
cfe8f6ce9b
commit
4cccb693f2
@ -101,9 +101,8 @@ void ConcurrentTask::startNext()
|
|||||||
setStepStatus(next->isMultiStep() ? next->getStepStatus() : next->getStatus());
|
setStepStatus(next->isMultiStep() ? next->getStepStatus() : next->getStatus());
|
||||||
updateState();
|
updateState();
|
||||||
|
|
||||||
QCoreApplication::processEvents();
|
QMetaObject::invokeMethod(
|
||||||
|
this, [=] { next->start(); }, Qt::QueuedConnection);
|
||||||
next->start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConcurrentTask::subTaskSucceeded(Task::Ptr task)
|
void ConcurrentTask::subTaskSucceeded(Task::Ptr task)
|
||||||
|
Loading…
Reference in New Issue
Block a user