winrt: Fix potential race condition when filling mapping file content

Before starting the process step asynchronously, we have to make sure
that m_mappingFileContent is initialized properly.

Change-Id: I5a2b51319a35bfe397cff994d5f3512f8d76ccf0
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Oliver Wolff
2019-01-29 14:48:26 +01:00
parent e109ff6e5f
commit ba00dbbe22

View File

@@ -109,8 +109,6 @@ bool WinRtPackageDeploymentStep::init(QList<const BuildStep *> &earlierSteps)
void WinRtPackageDeploymentStep::run(QFutureInterface<bool> &fi)
{
AbstractProcessStep::run(fi);
const QtSupport::BaseQtVersion *qt = QtSupport::QtKitInformation::qtVersion(target()->kit());
if (!qt)
return;
@@ -137,6 +135,8 @@ void WinRtPackageDeploymentStep::run(QFutureInterface<bool> &fi)
}
}
}
AbstractProcessStep::run(fi);
}
bool WinRtPackageDeploymentStep::processSucceeded(int exitCode, QProcess::ExitStatus status)