summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-10-01 10:04:18 +0200
committerEike Ziller <eike.ziller@digia.com>2013-10-01 10:04:18 +0200
commita0b2d10822fa61c859395dc5f1cb004c777170f3 (patch)
treedc39004651e62cc814f5e6e9a9ba26543d323c9a /src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
parent1d23165922e966c45a492f72e42a306b0754ff1d (diff)
parentd9602ca550c53e60a5229bfec9539e41fa5a694c (diff)
downloadqt-creator-a0b2d10822fa61c859395dc5f1cb004c777170f3.tar.gz
Merge remote-tracking branch 'origin/2.8'
Conflicts: src/plugins/coreplugin/coreplugin.pro src/plugins/coreplugin/coreplugin.qbs src/plugins/cppeditor/cppdoxygen_test.cpp src/plugins/cppeditor/cppquickfix_test.cpp src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp src/plugins/cpptools/cppcompletion_test.cpp Change-Id: I392229af933c1e56b9ea459d4d240a2144b4bfcb
Diffstat (limited to 'src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp')
-rw-r--r--src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
index 5d541e49e2..5e115202ff 100644
--- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
+++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
@@ -30,6 +30,7 @@
#include "cppeditor.h"
#include "cppeditorplugin.h"
+#include <coreplugin/plugintestutils.h>
#include <utils/fileutils.h>
#include <QDebug>
@@ -251,8 +252,7 @@ TestCase::~TestCase()
if (testFile->editor)
editorsToClose << testFile->editor;
}
- EditorManager::closeEditors(editorsToClose, false);
- QCoreApplication::processEvents(); // process any pending events
+ Core::Tests::closeAndDeleteEditors(editorsToClose);
// Remove the test files from the code-model
CppModelManagerInterface *mmi = CppTools::CppModelManagerInterface::instance();