Commit 346e1101 authored by Joerg Bornemann's avatar Joerg Bornemann
Browse files

WinRt: add error message to run control

Yield an error if the executable file path of the project
cannot be determined.

Change-Id: I37d6123cf3cd66280a180e586aac716933f375b2
Reviewed-by: default avatarOliver Wolff <>
parent f3a61e8b
......@@ -91,8 +91,16 @@ bool WinRtRunnerHelper::init(WinRtRunConfiguration *runConfiguration, QString *e
const QString &proFile = m_runConfiguration->proFilePath();
m_executableFilePath = target->applicationTargets().targetForProject(proFile).toString()
+ QStringLiteral(".exe"); // ### we should not need to append ".exe" here.
m_executableFilePath = target->applicationTargets().targetForProject(proFile).toString();
if (m_executableFilePath.isEmpty()) {
*errorMessage = tr("Cannot determine the executable file path for \"%1\".").arg(
return false;
// ### we should not need to append ".exe" here.
if (!m_executableFilePath.endsWith(QLatin1String(".exe")))
m_executableFilePath += QStringLiteral(".exe");
m_arguments = runConfiguration->arguments();
m_uninstallAfterStop = runConfiguration->uninstallAfterStop();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment