Maemo: Fix path to exectuable in desktop file when publishing.

This commit is contained in:
Christian Kandeler
2010-12-07 15:05:36 +01:00
parent f9d796e13c
commit 278730ddd0
4 changed files with 80 additions and 6 deletions

View File

@@ -209,15 +209,15 @@ bool MaemoDeployableListModel::isEditable(const QModelIndex &index) const
&& m_deployables.first().remoteDir.isEmpty();
}
bool MaemoDeployableListModel::hasDesktopFile() const
QString MaemoDeployableListModel::localDesktopFilePath() const
{
if (m_projectType == LibraryTemplate)
return false;
return QString();
foreach (const MaemoDeployable &d, m_deployables) {
if (QFileInfo(d.localFilePath).fileName() == m_projectName + QLatin1String(".desktop"))
return true;
return d.localFilePath;
}
return false;
return QString();
}
bool MaemoDeployableListModel::addDesktopFile(QString &error)