PySideBuildStep: Employ task tree for running

Task-number: QTCREATORBUG-29168
Change-Id: Ia665e8eb79f41e5cbb0bdd1394d7dbf9b85fea14
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-07-12 15:51:04 +02:00
parent 4024542df4
commit 4d2b4d0ab1

View File

@@ -15,6 +15,7 @@
#include <projectexplorer/target.h> #include <projectexplorer/target.h>
#include <utils/commandline.h> #include <utils/commandline.h>
#include <utils/process.h>
using namespace ProjectExplorer; using namespace ProjectExplorer;
using namespace Utils; using namespace Utils;
@@ -60,10 +61,15 @@ void PySideBuildStep::updatePySideProjectPath(const FilePath &pySideProjectPath)
void PySideBuildStep::doRun() void PySideBuildStep::doRun()
{ {
if (processParameters()->effectiveCommand().isExecutableFile()) using namespace Tasking;
AbstractProcessStep::doRun();
else const auto onSetup = [this] {
emit finished(true); if (!processParameters()->effectiveCommand().isExecutableFile())
return SetupResult::StopWithDone;
return SetupResult::Continue;
};
runTaskTree({onGroupSetup(onSetup), defaultProcessTask()});
} }