diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index a808cd5de38..8f217043982 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -995,8 +995,12 @@ BaseEditorDocumentProcessor *CppModelManager::editorDocumentProcessor( void CppModelManager::setIndexingSupport(CppIndexingSupport *indexingSupport) { - if (indexingSupport) - d->m_indexingSupporter = indexingSupport; + if (indexingSupport) { + if (dynamic_cast(indexingSupport)) + d->m_indexingSupporter = 0; + else + d->m_indexingSupporter = indexingSupport; + } } CppIndexingSupport *CppModelManager::indexingSupport()