Skip to content
Snippets Groups Projects
Commit a33c7990 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Honor QTCREATOR_NO_CODE_INDEXER, supress include scanning.

parent ec409969
No related branches found
No related tags found
No related merge requests found
......@@ -774,15 +774,17 @@ void CppModelManager::updateProjectInfo(const ProjectInfo &pinfo)
m_projects.insert(pinfo.project, pinfo);
m_dirty = true;
QFuture<void> result = QtConcurrent::run(&CppModelManager::updateIncludesInPaths,
this,
pinfo.includePaths,
m_headerSuffixes);
if (pinfo.includePaths.size() > 1) {
m_core->progressManager()->addTask(result, tr("Scanning"),
CppTools::Constants::TASK_INDEX,
Core::ProgressManager::CloseOnSuccess);
if (qgetenv("QTCREATOR_NO_CODE_INDEXER").isNull()) {
QFuture<void> result = QtConcurrent::run(&CppModelManager::updateIncludesInPaths,
this,
pinfo.includePaths,
m_headerSuffixes);
if (pinfo.includePaths.size() > 1) {
m_core->progressManager()->addTask(result, tr("Scanning"),
CppTools::Constants::TASK_INDEX,
Core::ProgressManager::CloseOnSuccess);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment