Maemo: Add default icon name to desktop file.

This commit is contained in:
Christian Kandeler
2010-08-30 17:34:24 +02:00
parent cb11e601d3
commit 0fe26e80c5

View File

@@ -340,6 +340,10 @@ bool MaemoTemplatesManager::updateDesktopFile(const Qt4Target *target,
findLine("Name=", desktopFileContents, nameNewLinePos, nameValuePos); findLine("Name=", desktopFileContents, nameNewLinePos, nameValuePos);
if (nameNewLinePos == nameValuePos) if (nameNewLinePos == nameValuePos)
desktopFileContents.insert(nameValuePos, appName.toUtf8()); desktopFileContents.insert(nameValuePos, appName.toUtf8());
int iconNewLinePos, iconValuePos;
findLine("Icon=", desktopFileContents, iconNewLinePos, iconValuePos);
if (iconNewLinePos == iconValuePos)
desktopFileContents.insert(iconValuePos, appName.toUtf8());
desktopFile.resize(0); desktopFile.resize(0);
desktopFile.write(desktopFileContents); desktopFile.write(desktopFileContents);