From 2774c9c0bfc71b54dce0a36ab91d54b392f74172 Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Tue, 8 Dec 2009 18:19:19 +0100
Subject: [PATCH] Also search custom executables in the working directory

---
 .../projectexplorer/customexecutablerunconfiguration.cpp        | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
index 06bd46658e3..6415981dd0a 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;
     }
-- 
GitLab