Maemo: Small deployment refactoring.

This commit is contained in:
Christian Kandeler
2010-11-26 09:56:05 +01:00
parent ed5f9bf0fe
commit 218978a74a
3 changed files with 6 additions and 5 deletions

View File

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