diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-01-23 23:58:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 23:58:41 +0100 |
commit | 04e4900415aa102f3ad2f40375e3b59bfc7ee9ba (patch) | |
tree | da5839f097834ebc2ef380293249f3b6778b0842 /launcher/tasks/ConcurrentTask.cpp | |
parent | cefa1662ef822323940fabc18fc48bee1937eb4f (diff) | |
parent | ec1f73c827c127c1dfc2a8cc1760015336cd8845 (diff) | |
download | PrismLauncher-04e4900415aa102f3ad2f40375e3b59bfc7ee9ba.tar.gz PrismLauncher-04e4900415aa102f3ad2f40375e3b59bfc7ee9ba.tar.bz2 PrismLauncher-04e4900415aa102f3ad2f40375e3b59bfc7ee9ba.zip |
Merge pull request #758 from flowln/fix_process_events_backstab
Diffstat (limited to 'launcher/tasks/ConcurrentTask.cpp')
-rw-r--r-- | launcher/tasks/ConcurrentTask.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/tasks/ConcurrentTask.cpp b/launcher/tasks/ConcurrentTask.cpp index a890013e..190d48d8 100644 --- a/launcher/tasks/ConcurrentTask.cpp +++ b/launcher/tasks/ConcurrentTask.cpp @@ -110,14 +110,14 @@ void ConcurrentTask::startNext() setStepStatus(next->isMultiStep() ? next->getStepStatus() : next->getStatus()); updateState(); + QCoreApplication::processEvents(); + QMetaObject::invokeMethod(next.get(), &Task::start, Qt::QueuedConnection); // Allow going up the number of concurrent tasks in case of tasks being added in the middle of a running task. int num_starts = m_total_max_size - m_doing.size(); for (int i = 0; i < num_starts; i++) QMetaObject::invokeMethod(this, &ConcurrentTask::startNext, Qt::QueuedConnection); - - QCoreApplication::processEvents(); } void ConcurrentTask::subTaskSucceeded(Task::Ptr task) |