Maemo: Only save a remote file path if it has been set by the user.

QTCREATORBUG-1661
This commit is contained in:
ck
2010-07-19 17:24:59 +02:00
parent 9f967960c1
commit 595ee9ff3e

View File

@@ -175,11 +175,9 @@ void MaemoPackageContents::fromMap(const QVariantMap &map)
QString MaemoPackageContents::remoteExecutableFilePath() const
{
if (m_remoteExecutableFilePath.isEmpty()) {
m_remoteExecutableFilePath = QLatin1String("/usr/local/bin/")
+ m_packageStep->executableFileName();
}
return m_remoteExecutableFilePath;
return m_remoteExecutableFilePath.isEmpty()
? QLatin1String("/usr/local/bin/") + m_packageStep->executableFileName()
: m_remoteExecutableFilePath;
}
} // namespace Qt4ProjectManager