summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanager.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-10-26 15:31:43 +0100
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-10-26 15:34:12 +0100
commitcd3435a9835dda6c0d5cc2295c5642c47045caca (patch)
tree10ac17b85dbdd011383dd0b152177f5230b1e288 /src/plugins/cpptools/cppmodelmanager.cpp
parentfe9b4458c63fdabfb48afda4d7fe4db343a2abe6 (diff)
downloadqt-creator-cd3435a9835dda6c0d5cc2295c5642c47045caca.tar.gz
Don't needlessly call updateProjectInfo()
Should not be necessary when nothing changed in the project info. This also fixes a problem where include file scanning happened twice after saving a pro file. Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.cpp')
-rw-r--r--src/plugins/cpptools/cppmodelmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp
index 1d88692056..75f8f743b3 100644
--- a/src/plugins/cpptools/cppmodelmanager.cpp
+++ b/src/plugins/cpptools/cppmodelmanager.cpp
@@ -331,9 +331,8 @@ void CppPreprocessor::resetEnvironment()
bool CppPreprocessor::includeFile(const QString &absoluteFilePath, QString *result)
{
- if (absoluteFilePath.isEmpty() || m_included.contains(absoluteFilePath)) {
+ if (absoluteFilePath.isEmpty() || m_included.contains(absoluteFilePath))
return true;
- }
if (m_workingCopy.contains(absoluteFilePath)) {
m_included.insert(absoluteFilePath);