forked from qt-creator/qt-creator
Clang: Remove per-mimetype settings
Related to
commit c47079f97f7d42db0c581525a2ce6fddbc0995f2
Clang: Activate the code model with a check box
Change-Id: Ief11768ba0dd27788032e2dd3ad9b7ae39a8f52b
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -174,13 +174,8 @@ void ModelManagerSupportClang::onEditorOpened(Core::IEditor *editor)
|
||||
TextEditor::TextDocument *textDocument = qobject_cast<TextEditor::TextDocument *>(document);
|
||||
|
||||
if (textDocument && cppModelManager()->isCppEditor(editor)) {
|
||||
const QString clangSupportId = QLatin1String(Constants::CLANG_MODELMANAGERSUPPORT_ID);
|
||||
if (cppModelManager()->isManagedByModelManagerSupport(textDocument, clangSupportId)) {
|
||||
connectTextDocumentToTranslationUnit(textDocument);
|
||||
connectToWidgetsMarkContextMenuRequested(editor->widget());
|
||||
} else {
|
||||
connectTextDocumentToUnsavedFiles(textDocument);
|
||||
}
|
||||
connectTextDocumentToTranslationUnit(textDocument);
|
||||
connectToWidgetsMarkContextMenuRequested(editor->widget());
|
||||
|
||||
// TODO: Ensure that not fully loaded documents are updated?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user