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
@@ -540,8 +540,7 @@ void CppToolsPlugin::test_modelmanager_gc_if_last_cppeditor_closed()
|
||||
QVERIFY(mm->snapshot().contains(file));
|
||||
|
||||
// Close file/editor
|
||||
const QList<Core::IEditor*> editorsToClose = QList<Core::IEditor*>() << editor;
|
||||
em->closeEditors(editorsToClose, /*askAboutModifiedEditors=*/ false);
|
||||
em->closeEditor(editor, /*askAboutModifiedEditors=*/ false);
|
||||
|
||||
// Check: File is removed from the snapshpt
|
||||
QVERIFY(!mm->workingCopy().contains(file));
|
||||
|
||||
Reference in New Issue
Block a user