diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp index 06bd46658e3e13adf6f86463c12b44cbd03ce915..6415981dd0a271a005f93cbd7269f279c12166b0 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp @@ -300,6 +300,8 @@ QString CustomExecutableRunConfiguration::executable() const if (QDir::isRelativePath(m_executable)) { Environment env = project()->activeBuildConfiguration()->environment(); exec = env.searchInPath(m_executable); + if (exec.isEmpty()) + exec = QDir::cleanPath(workingDirectory() + "/" + m_executable); } else { exec = m_executable; }