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()}); }