Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
9e700af4
Commit
9e700af4
authored
Mar 18, 2009
by
Thorbjørn Lindeijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed updating of defines after editing the .config file
Reviewed-by: Roberto Raggi
parent
67148893
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/plugins/genericprojectmanager/genericproject.cpp
src/plugins/genericprojectmanager/genericproject.cpp
+7
-4
No files found.
src/plugins/genericprojectmanager/genericproject.cpp
View file @
9e700af4
...
...
@@ -181,9 +181,9 @@ void GenericProject::parseProject()
_defines
.
clear
();
QFile
configF
n
(
configFileName
());
if
(
configF
n
.
open
(
QFile
::
ReadOnly
))
_defines
=
configF
n
.
readAll
();
QFile
configF
ile
(
configFileName
());
if
(
configF
ile
.
open
(
QFile
::
ReadOnly
))
_defines
=
configF
ile
.
readAll
();
emit
fileListChanged
();
}
...
...
@@ -225,8 +225,11 @@ void GenericProject::refresh()
pinfo
.
sourceFiles
=
files
();
pinfo
.
sourceFiles
+=
generated
();
QStringList
filesToUpdate
=
pinfo
.
sourceFiles
;
filesToUpdate
.
append
(
QLatin1String
(
"<configuration>"
));
// XXX don't hardcode configuration file name
modelManager
->
updateProjectInfo
(
pinfo
);
modelManager
->
updateSourceFiles
(
pinfo
.
sourceFiles
);
modelManager
->
updateSourceFiles
(
filesToUpdate
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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