forked from qt-creator/qt-creator
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 <david.schulz@qt.io>
This commit is contained in:
@@ -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 ¤tProjectPartInfo,
|
||||
const QString &preferredProjectPartId,
|
||||
const ProjectExplorer::Project *activeProject,
|
||||
Language languagePreference,
|
||||
bool projectHasChanged) const;
|
||||
bool projectsUpdated) const;
|
||||
|
||||
private:
|
||||
FallBackProjectPart m_fallbackProjectPart;
|
||||
|
||||
Reference in New Issue
Block a user