Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
0fe26e80
Commit
0fe26e80
authored
Aug 30, 2010
by
Christian Kandeler
Browse files
Maemo: Add default icon name to desktop file.
parent
cb11e601
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemotemplatesmanager.cpp
View file @
0fe26e80
...
...
@@ -340,6 +340,10 @@ bool MaemoTemplatesManager::updateDesktopFile(const Qt4Target *target,
findLine
(
"Name="
,
desktopFileContents
,
nameNewLinePos
,
nameValuePos
);
if
(
nameNewLinePos
==
nameValuePos
)
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
.
write
(
desktopFileContents
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment