From 4d2b4d0ab16809790d50618c09b2a5ddc6f57af4 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 12 Jul 2023 15:51:04 +0200 Subject: [PATCH] PySideBuildStep: Employ task tree for running Task-number: QTCREATORBUG-29168 Change-Id: Ia665e8eb79f41e5cbb0bdd1394d7dbf9b85fea14 Reviewed-by: Reviewed-by: hjk --- src/plugins/python/pysidebuildconfiguration.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/plugins/python/pysidebuildconfiguration.cpp b/src/plugins/python/pysidebuildconfiguration.cpp index 51c97bd40bd..3993363fcd6 100644 --- a/src/plugins/python/pysidebuildconfiguration.cpp +++ b/src/plugins/python/pysidebuildconfiguration.cpp @@ -15,6 +15,7 @@ #include #include +#include using namespace ProjectExplorer; using namespace Utils; @@ -60,10 +61,15 @@ void PySideBuildStep::updatePySideProjectPath(const FilePath &pySideProjectPath) void PySideBuildStep::doRun() { - if (processParameters()->effectiveCommand().isExecutableFile()) - AbstractProcessStep::doRun(); - else - emit finished(true); + using namespace Tasking; + + const auto onSetup = [this] { + if (!processParameters()->effectiveCommand().isExecutableFile()) + return SetupResult::StopWithDone; + return SetupResult::Continue; + }; + + runTaskTree({onGroupSetup(onSetup), defaultProcessTask()}); }