minor fix

This commit is contained in:
Roy Qu 2022-04-25 10:13:28 +08:00
parent e7db1a3a6f
commit 19c2096e5e
1 changed files with 4 additions and 3 deletions

View File

@ -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);
}