forked from qt-creator/qt-creator
EditorManager: Make closeEditor public
And use it where appropriate Change-Id: I0f37b8aada6eaa9be6743724b91a59173a01cb0c Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
5a02089e3c
commit
0b4300a68c
@@ -1865,13 +1865,10 @@ void FakeVimPluginPrivate::handleDelayedQuit(bool forced, IEditor *editor)
|
||||
// This tries to simulate vim behaviour. But the models of vim and
|
||||
// Qt Creator core do not match well...
|
||||
EditorManager *editorManager = ICore::editorManager();
|
||||
if (editorManager->hasSplitter()) {
|
||||
if (editorManager->hasSplitter())
|
||||
triggerAction(Core::Constants::REMOVE_CURRENT_SPLIT);
|
||||
} else {
|
||||
QList<IEditor *> editors;
|
||||
editors.append(editor);
|
||||
editorManager->closeEditors(editors, !forced);
|
||||
}
|
||||
else
|
||||
editorManager->closeEditor(editor, !forced);
|
||||
}
|
||||
|
||||
void FakeVimPluginPrivate::handleDelayedQuitAll(bool forced)
|
||||
|
||||
Reference in New Issue
Block a user