CodeAssist: Store processor state in specialized objects

Change-Id: I19de64b948599c833496ab8caabf3eaafc845658
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2018-03-01 12:33:48 +01:00
parent dfd2dcb156
commit 20e67865ea
5 changed files with 20 additions and 17 deletions

View File

@@ -255,7 +255,7 @@ void CodeAssistantPrivate::requestProposal(AssistReason reason,
if (IAssistProposal *newProposal = processor->perform(assistInterface)) {
displayProposal(newProposal, reason);
delete processor;
} else if (!processor->performWasApplicable()) {
} else if (!processor->running()) {
delete processor;
} else { // ...async request was triggered
m_asyncProcessor = processor;