diff options
Diffstat (limited to 'src/plugins/cpptools/baseeditordocumentparser.cpp')
-rw-r--r-- | src/plugins/cpptools/baseeditordocumentparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/baseeditordocumentparser.cpp b/src/plugins/cpptools/baseeditordocumentparser.cpp index 52fd64e1135..314b7f98abe 100644 --- a/src/plugins/cpptools/baseeditordocumentparser.cpp +++ b/src/plugins/cpptools/baseeditordocumentparser.cpp @@ -126,7 +126,7 @@ ProjectPart::Ptr BaseEditorDocumentParser::determineProjectPart(const QString &f CppModelManager *cmm = CppModelManager::instance(); QList<ProjectPart::Ptr> projectParts = cmm->projectPart(filePath); if (projectParts.isEmpty()) { - if (projectPart) + if (projectPart && config.stickToPreviousProjectPart) // File is not directly part of any project, but we got one before. We will re-use it, // because re-calculating this can be expensive when the dependency table is big. return projectPart; |