forked from qt-creator/qt-creator
Maemo: Add default icon name to desktop file.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user