From a442d275fca72eaa8558d241f920e71bd06ae2b4 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 28 Oct 2021 13:29:03 +0200 Subject: [PATCH] Editor: hide old proposal if new proposal is empty amends 28447355bafb60733e61383adae04cb1b6e80b3c Change-Id: Ica1b95e205be4328e675714dbf81f813a76ec9a3 Reviewed-by: Christian Kandeler --- src/plugins/texteditor/codeassist/codeassistant.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/texteditor/codeassist/codeassistant.cpp b/src/plugins/texteditor/codeassist/codeassistant.cpp index 6aa1436c7dd..7224ef6906c 100644 --- a/src/plugins/texteditor/codeassist/codeassistant.cpp +++ b/src/plugins/texteditor/codeassist/codeassistant.cpp @@ -337,6 +337,7 @@ void CodeAssistantPrivate::displayProposal(IAssistProposal *newProposal, AssistR if (!newProposal->hasItemsToPropose(prefix, reason)) { if (newProposal->isCorrective(m_editorWidget)) newProposal->makeCorrection(m_editorWidget); + destroyContext(); return; }