From 19c2096e5e0e6fc4fa59eb7a824c9f0e15c7b650 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Mon, 25 Apr 2022 10:13:28 +0800 Subject: [PATCH] minor fix --- RedPandaIDE/widgets/codecompletionpopup.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/RedPandaIDE/widgets/codecompletionpopup.cpp b/RedPandaIDE/widgets/codecompletionpopup.cpp index ef440f38..b1cd2199 100644 --- a/RedPandaIDE/widgets/codecompletionpopup.cpp +++ b/RedPandaIDE/widgets/codecompletionpopup.cpp @@ -971,13 +971,14 @@ void CodeCompletionPopup::hideEvent(QHideEvent *event) QMutexLocker locker(&mMutex); mListView->setKeypressedCallback(nullptr); mCompletionStatementList.clear(); - foreach (PStatement statement, mFullCompletionStatementList) { - statement->matchPositions.clear(); - } +// foreach (PStatement statement, mFullCompletionStatementList) { +// statement->matchPositions.clear(); +// } mFullCompletionStatementList.clear(); mIncludedFiles.clear(); mUsings.clear(); mAddedStatements.clear(); + mCurrentStatement = nullptr; mParser = nullptr; QWidget::hideEvent(event); }