diff options
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager_test.cpp b/src/plugins/cpptools/cppmodelmanager_test.cpp index 0c35d4099a..669c086d52 100644 --- a/src/plugins/cpptools/cppmodelmanager_test.cpp +++ b/src/plugins/cpptools/cppmodelmanager_test.cpp @@ -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)); |