Commit 3447f8d9 authored by Eike Ziller's avatar Eike Ziller
Browse files

MultiTask: Use Utils::runAsync

Change-Id: I7df87abe6839ed1738f610df1a173a6c9eded31e
Reviewed-by: default avatarEike Ziller <>
parent 29436c39
......@@ -86,7 +86,7 @@ public:
this, &MultiTask::setProgressValue);
connect(watcher, &QFutureWatcherBase::progressTextChanged,
this, &MultiTask::setProgressText);
watcher->setFuture(QtConcurrent::run(fn, object));
watcher->setFuture(Utils::runAsync(QThreadPool::globalInstance(), fn, object));
selfWatcher = new QFutureWatcher<R>();
connect(selfWatcher, &QFutureWatcherBase::canceled, this, &MultiTask::cancelSelf);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment