Commit 29436c39 authored by Eike Ziller's avatar Eike Ziller
Browse files

runAsync: Set thread priority also when not running in thread pool

Change-Id: I527610cd1d5ed2daf66aa01073e1a001ec56641e
Reviewed-by: default avatarEike Ziller <>
parent 335b9644
......@@ -828,7 +828,7 @@ runAsync(QThreadPool *pool, QThread::Priority priority, Function &&function, Arg
auto thread = new Internal::RunnableThread(job);
thread->moveToThread(qApp->thread()); // make sure thread gets deleteLater on main thread
QObject::connect(thread, &QThread::finished, thread, &QObject::deleteLater);
return future;
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