forked from qt-creator/qt-creator
Allow updating of configuration or file list separately
Now it will only update the list of files when you edit [project].files, and only reparse all files when you edit [project].config or [project].includes. When updating the file list it will only parse the added files.
This commit is contained in:
@@ -79,10 +79,12 @@ void Manager::unregisterProject(GenericProject *project)
|
||||
void Manager::notifyChanged(const QString &fileName)
|
||||
{
|
||||
foreach (GenericProject *project, m_projects) {
|
||||
if (fileName == project->filesFileName() ||
|
||||
fileName == project->includesFileName() ||
|
||||
fileName == project->configFileName())
|
||||
project->refresh();
|
||||
if (fileName == project->filesFileName()) {
|
||||
project->refresh(GenericProject::Files);
|
||||
}
|
||||
else if (fileName == project->includesFileName() ||
|
||||
fileName == project->configFileName()) {
|
||||
project->refresh(GenericProject::Configuration);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user