Commit 1b89ccb8 authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppEditor: Check for canceled future

Task-number: QTCREATORBUG-18793
Change-Id: I80a811814e5c7edc1e9b94ed0775abfc21723da2
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 45caf84c
......@@ -98,6 +98,8 @@ void CppUseSelectionsUpdater::update(CallType callType)
const int startRevision = cppEditorDocument->document()->revision();
QFuture<CursorInfo> future = cppEditorDocument->cursorInfo(params);
if (future.isCanceled())
return;
// QFuture::waitForFinished seems to block completely, not even
// allowing to process events from QLocalSocket.
......
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