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); QMutexLocker locker(&mMutex);
mListView->setKeypressedCallback(nullptr); mListView->setKeypressedCallback(nullptr);
mCompletionStatementList.clear(); mCompletionStatementList.clear();
foreach (PStatement statement, mFullCompletionStatementList) { // foreach (PStatement statement, mFullCompletionStatementList) {
statement->matchPositions.clear(); // statement->matchPositions.clear();
} // }
mFullCompletionStatementList.clear(); mFullCompletionStatementList.clear();
mIncludedFiles.clear(); mIncludedFiles.clear();
mUsings.clear(); mUsings.clear();
mAddedStatements.clear(); mAddedStatements.clear();
mCurrentStatement = nullptr;
mParser = nullptr; mParser = nullptr;
QWidget::hideEvent(event); QWidget::hideEvent(event);
} }