aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cppprojectpartchooser.h
diff options
context:
space:
mode:
authorNikolai Kosjar <[email protected]>2017-01-19 15:46:40 +0100
committerNikolai Kosjar <[email protected]>2017-01-26 07:52:54 +0000
commit741596481900347ef4c69d80efdffe710e79ff6b (patch)
treec7c9471da1abe791de994d8256fcf2b53d03dbbe /src/plugins/cpptools/cppprojectpartchooser.h
parentbddfe21961f59ee471b302da9bc7a5c7ee4f561d (diff)
CppTools: Fix choosing project part after project open
As long as there are project parts for a source file, always determine the best project part, instead of trying to stick to the previous one. This ensures the best project part at all times and simplifies the code. Change-Id: I25ea3eb43a5a3e6d93688d4b8965f596dc9ae22b Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/cpptools/cppprojectpartchooser.h')
-rw-r--r--src/plugins/cpptools/cppprojectpartchooser.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cppprojectpartchooser.h b/src/plugins/cpptools/cppprojectpartchooser.h
index 6cf59544cf4..62035ce8b6f 100644
--- a/src/plugins/cpptools/cppprojectpartchooser.h
+++ b/src/plugins/cpptools/cppprojectpartchooser.h
@@ -48,13 +48,12 @@ public:
void setProjectPartsForFile(const ProjectPartsForFile &getter);
void setProjectPartsFromDependenciesForFile(const ProjectPartsFromDependenciesForFile &getter);
- ProjectPartInfo choose(
- const QString &filePath,
+ ProjectPartInfo choose(const QString &filePath,
const ProjectPartInfo &currentProjectPartInfo,
const QString &preferredProjectPartId,
const ProjectExplorer::Project *activeProject,
Language languagePreference,
- bool projectHasChanged) const;
+ bool projectsUpdated) const;
private:
FallBackProjectPart m_fallbackProjectPart;