forked from qt-creator/qt-creator
CppTools: Reparse editor documents after active project change
Change-Id: I010709c866291bf59c27f4a05765e1ab0efd28af Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -121,7 +121,8 @@ ProjectPart::Ptr BaseEditorDocumentParser::determineProjectPart(
|
||||
const QString &filePath,
|
||||
const Configuration &config,
|
||||
const State &state,
|
||||
const ProjectExplorer::Project *activeProject)
|
||||
const ProjectExplorer::Project *activeProject,
|
||||
bool hasActiveProjectChanged)
|
||||
{
|
||||
Internal::ProjectPartChooser chooser;
|
||||
chooser.setFallbackProjectPart([](){
|
||||
@@ -139,7 +140,8 @@ ProjectPart::Ptr BaseEditorDocumentParser::determineProjectPart(
|
||||
state.projectPart,
|
||||
config.manuallySetProjectPart,
|
||||
config.stickToPreviousProjectPart,
|
||||
activeProject);
|
||||
activeProject,
|
||||
hasActiveProjectChanged);
|
||||
}
|
||||
|
||||
} // namespace CppTools
|
||||
|
||||
Reference in New Issue
Block a user