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 <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()});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user