forked from qt-creator/qt-creator
Don't use openedEditors in CMakeProject
Work on documents instead. Change-Id: I7000d10b2a885d5dc22c9b40377c9521f21b6195 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -221,9 +221,9 @@ bool CMakeProject::parseCMakeLists()
|
|||||||
}
|
}
|
||||||
|
|
||||||
CMakeBuildConfiguration *activeBC = static_cast<CMakeBuildConfiguration *>(activeTarget()->activeBuildConfiguration());
|
CMakeBuildConfiguration *activeBC = static_cast<CMakeBuildConfiguration *>(activeTarget()->activeBuildConfiguration());
|
||||||
foreach (Core::IEditor *editor, Core::EditorManager::instance()->openedEditors())
|
foreach (Core::IDocument *document, Core::EditorManager::documentModel()->openedDocuments())
|
||||||
if (isProjectFile(editor->document()->filePath()))
|
if (isProjectFile(document->filePath()))
|
||||||
editor->document()->infoBar()->removeInfo(Core::Id("CMakeEditor.RunCMake"));
|
document->infoBar()->removeInfo(Core::Id("CMakeEditor.RunCMake"));
|
||||||
|
|
||||||
// Find cbp file
|
// Find cbp file
|
||||||
QString cbpFile = CMakeManager::findCbpFile(activeBC->buildDirectory());
|
QString cbpFile = CMakeManager::findCbpFile(activeBC->buildDirectory());
|
||||||
|
|||||||
Reference in New Issue
Block a user