From b36965776c10c43eb6fe91eb0f2bb10a71177c56 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 7 May 2018 10:44:18 +0200 Subject: [PATCH] QbsProjectManager: Fix the paths of non-installed executables ... in run configurations. One check was missing. This amends c6cd9e8fbe9ed. Change-Id: If398a719adbb5a5c2a527b70d274751ada91abe4 Reviewed-by: Christian Stenger --- src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp b/src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp index 6c8ef0a5918..83c6ea4a6e3 100644 --- a/src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp +++ b/src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp @@ -130,6 +130,8 @@ Utils::FileName QbsRunConfiguration::executableToRun(const BuildTargetInfo &targ return appInBuildDir; const QString deployedAppFilePath = target()->deploymentData() .deployableForLocalFile(appInBuildDir.toString()).remoteFilePath(); + if (deployedAppFilePath.isEmpty()) + return appInBuildDir; const FileName appInLocalInstallDir = target()->deploymentData().localInstallRoot() + deployedAppFilePath; return appInLocalInstallDir.exists() ? appInLocalInstallDir : appInBuildDir;