Skip to content
Snippets Groups Projects
Commit 0fe26e80 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Add default icon name to desktop file.

parent cb11e601
No related branches found
No related tags found
No related merge requests found
...@@ -340,6 +340,10 @@ bool MaemoTemplatesManager::updateDesktopFile(const Qt4Target *target, ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment