diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index 3b4f37e64a151665a9610b4292f4463da59d3ca7..785aab41d4878f7b43b514ca7a37a4842d5f4106 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -221,9 +221,9 @@ bool CMakeProject::parseCMakeLists() } CMakeBuildConfiguration *activeBC = static_cast(activeTarget()->activeBuildConfiguration()); - foreach (Core::IEditor *editor, Core::EditorManager::instance()->openedEditors()) - if (isProjectFile(editor->document()->filePath())) - editor->document()->infoBar()->removeInfo(Core::Id("CMakeEditor.RunCMake")); + foreach (Core::IDocument *document, Core::EditorManager::documentModel()->openedDocuments()) + if (isProjectFile(document->filePath())) + document->infoBar()->removeInfo(Core::Id("CMakeEditor.RunCMake")); // Find cbp file QString cbpFile = CMakeManager::findCbpFile(activeBC->buildDirectory());