forked from qt-creator/qt-creator
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:
@@ -15,6 +15,7 @@
|
||||
#include <projectexplorer/target.h>
|
||||
|
||||
#include <utils/commandline.h>
|
||||
#include <utils/process.h>
|
||||
|
||||
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()});
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user