diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-10-08 13:02:52 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-10-08 17:09:55 +0200 |
commit | f47c101b8b03776ac874732684f9f7d1af4176e3 (patch) | |
tree | f4cb68907b9e6cd77dd4fef7798045ecd7aced84 /src/plugins/cpptools/cppcompletion_test.cpp | |
parent | 171fd691c397dcbd03e7d5bb2cb3d3b4845158a9 (diff) | |
download | qt-creator-f47c101b8b03776ac874732684f9f7d1af4176e3.tar.gz |
Revert "EditorManager: Fix crash when closing an editor upon activation"
Deleting an editor while currentEditorChanged is apparently not a good
idea.
Use a queued connection instead.
This reverts commits 243a6259618e69b8da9ac2438480c449754f7f77,
447c4ed37f8904ca733d6e6253ad19bb0388f209,
d9602ca550c53e60a5229bfec9539e41fa5a694c and
31034870389a512e3450e32ed990e1622bd6e679.
Change-Id: Iccbee25fb77714963faa6f7184d1f5f53ed348a6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcompletion_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp index 3616561d09..755d0d9b98 100644 --- a/src/plugins/cpptools/cppcompletion_test.cpp +++ b/src/plugins/cpptools/cppcompletion_test.cpp @@ -31,7 +31,6 @@ #include "cppcompletionassist.h" #include "cppmodelmanager.h" -#include <coreplugin/plugintestutils.h> #include <texteditor/plaintexteditor.h> #include <texteditor/codeassist/iassistproposal.h> #include <texteditor/convenience.h> @@ -92,7 +91,7 @@ public: ~CompletionTestCase() { - Core::Tests::closeAndDeleteEditor(editor); + EditorManager::closeEditor(editor, /*askAboutModifiedEditors=*/ false); cmm->GC(); QVERIFY(cmm->snapshot().isEmpty()); } |