Commit 934cea56 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Erik Verbruggen

CppEditor: Fix crash when closing editors fast

Task-number: QTCREATORBUG-9250

Change-Id: I15bcaf5d0e55c7e3cc731755fc48df2d1181f3da
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 1e187f17
......@@ -143,7 +143,13 @@ CppEditorSupport::CppEditorSupport(CppModelManager *modelManager, BaseTextEditor
}
CppEditorSupport::~CppEditorSupport()
{ }
{
m_highlighter.cancel();
m_futureSemanticInfo.cancel();
m_highlighter.waitForFinished();
m_futureSemanticInfo.waitForFinished();
}
QString CppEditorSupport::fileName() const
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment