forked from qt-creator/qt-creator
QbsProjectManager: Fix the paths of non-installed executables
... in run configurations. One check was missing.
This amends c6cd9e8fbe.
Change-Id: If398a719adbb5a5c2a527b70d274751ada91abe4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -130,6 +130,8 @@ Utils::FileName QbsRunConfiguration::executableToRun(const BuildTargetInfo &targ
|
|||||||
return appInBuildDir;
|
return appInBuildDir;
|
||||||
const QString deployedAppFilePath = target()->deploymentData()
|
const QString deployedAppFilePath = target()->deploymentData()
|
||||||
.deployableForLocalFile(appInBuildDir.toString()).remoteFilePath();
|
.deployableForLocalFile(appInBuildDir.toString()).remoteFilePath();
|
||||||
|
if (deployedAppFilePath.isEmpty())
|
||||||
|
return appInBuildDir;
|
||||||
const FileName appInLocalInstallDir = target()->deploymentData().localInstallRoot()
|
const FileName appInLocalInstallDir = target()->deploymentData().localInstallRoot()
|
||||||
+ deployedAppFilePath;
|
+ deployedAppFilePath;
|
||||||
return appInLocalInstallDir.exists() ? appInLocalInstallDir : appInBuildDir;
|
return appInLocalInstallDir.exists() ? appInLocalInstallDir : appInBuildDir;
|
||||||
|
|||||||
Reference in New Issue
Block a user