From 4827b231160992178e21cd5c6d524591014653e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hellstr=C3=B6mer?= Date: Mon, 9 Sep 2024 01:43:09 +0200 Subject: [PATCH] Changed QtConcurrent::run() to QThreadPool::start() to fix compile warning --- sources/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index cf965fd4c..1633a1fad 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -23,7 +23,7 @@ #include "utils/qetsettings.h" #include -#include +#include /** @brief myMessageOutput @@ -216,7 +216,7 @@ QGuiApplication::setHighDpiScaleFactorRoundingPolicy(QetSettings::hdpiScaleFacto QObject::connect(&app, &SingleApplication::receivedMessage, &qetapp, &QETApp::receiveMessage); - QtConcurrent::run([=]() + QThreadPool::globalInstance()->start([=]() { // for debugging qInstallMessageHandler(myMessageOutput);