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
9e700af4
Commit
9e700af4
authored
Mar 18, 2009
by
Thorbjørn Lindeijer
Browse files
Fixed updating of defines after editing the .config file
Reviewed-by: Roberto Raggi
parent
67148893
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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