From c5e743e6c9ba729b2cd874aa2db9764434bcd8ea Mon Sep 17 00:00:00 2001
From: Christian Kandeler <christian.kandeler@nokia.com>
Date: Fri, 8 Oct 2010 15:10:26 +0200
Subject: [PATCH] Maemo: Bugfix: Use TargetInformation::workingDir in all
 cases.

We currently use buildDir in one place and workingDir in another,
which breaks projects that have DESTDIR set.

Reviewed-by: Tobias Hunger
---
 .../qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp
index 272e1c2211d..c5740cb0c77 100644
--- a/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp
+++ b/src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp
@@ -218,7 +218,7 @@ QString MaemoDeployableListModel::localExecutableFilePath() const
     fileName += ti.target;
     if (isLib)
         fileName += QLatin1String(isStatic ? ".a" : ".so");
-    return QDir::cleanPath(ti.buildDir + '/' + fileName);
+    return QDir::cleanPath(ti.workingDir + '/' + fileName);
 }
 
 QString MaemoDeployableListModel::remoteExecutableFilePath() const
-- 
GitLab