forked from qt-creator/qt-creator
EditorManager: Use static pattern, adjust surrounding code
Change-Id: I3255a0150cd9a730336456c5a9f986eb74fefbff Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -342,7 +342,7 @@ QmlEngine::~QmlEngine()
|
||||
if (textEditPtr)
|
||||
editorsToClose << textEditPtr.data();
|
||||
}
|
||||
Core::EditorManager::instance()->closeEditors(editorsToClose);
|
||||
Core::EditorManager::closeEditors(editorsToClose);
|
||||
}
|
||||
|
||||
void QmlEngine::notifyInferiorSetupOk()
|
||||
@@ -539,7 +539,7 @@ void QmlEngine::gotoLocation(const Location &location)
|
||||
//Check if there are open documents with the same title
|
||||
foreach (Core::IDocument *document, Core::EditorManager::documentModel()->openedDocuments()) {
|
||||
if (document->displayName() == titlePattern) {
|
||||
Core::EditorManager::instance()->activateEditorForDocument(document);
|
||||
Core::EditorManager::activateEditorForDocument(document);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user