CodeAssistant: add cancel to asynchronous processors

Fixes crash when the processor reports a result after the code assistant
was destroyed.

Change-Id: I8588d3d6acad69f1ec6302e8ba09d642ebbb77f1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2020-02-12 14:06:45 +01:00
parent 86fae567fa
commit 552ccd6a61
6 changed files with 52 additions and 16 deletions

View File

@@ -51,6 +51,7 @@ public:
virtual bool running() { return false; }
virtual bool needsRestart() const { return false; }
virtual void cancel() {}
private:
AsyncCompletionsAvailableHandler m_asyncCompletionsAvailableHandler;