From 3fae8fdc36bf9d1a489e70618808632922dd47a4 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 9 Mar 2023 17:11:29 +0100 Subject: Python: Use QtConcurrent invocation for async run Change-Id: I26254d5c78c3b6ea06ed9baec8e52b988a6e9608 Reviewed-by: Qt CI Bot Reviewed-by: David Schulz Reviewed-by: --- src/plugins/python/pythonlanguageclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/python/pythonlanguageclient.cpp') diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 74edb153e1..088cd51644 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -29,9 +29,9 @@ #include #include +#include #include #include -#include #include #include @@ -341,7 +341,7 @@ void PyLSConfigureAssistant::openDocumentWithPython(const FilePath &python, instance()->handlePyLSState(python, watcher->result(), document); watcher->deleteLater(); }); - watcher->setFuture(Utils::runAsync(&checkPythonLanguageServer, python)); + watcher->setFuture(Utils::asyncRun(&checkPythonLanguageServer, python)); } void PyLSConfigureAssistant::handlePyLSState(const FilePath &python, -- cgit v1.2.1