dont save parser when code/header completion popup hides

This commit is contained in:
royqh1979 2021-11-12 02:31:45 +08:00
parent b3e5ddc94c
commit 81b524c9ed
3 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Version 0.8.6 For Dev-C++ 7 Beta
- enhancement: greatly reduces memory usage for symbol parsing ( memory needed for bits/stdc++.h reduced from 150m+ to 50m+)
- enhancement: greatly reduces memory usage for symbol parsing ( memory needed for bits/stdc++.h reduced from 150m+ to 80m+)
- fix: currect compiler set not correctly updated when switch between normal file and project file
Version 0.8.5 For Dev-C++ 7 Beta

View File

@ -894,6 +894,7 @@ void CodeCompletionPopup::hideEvent(QHideEvent *event)
mIncludedFiles.clear();
mUsings.clear();
mAddedStatements.clear();
mParser = nullptr;
QWidget::hideEvent(event);
}

View File

@ -227,6 +227,7 @@ void HeaderCompletionPopup::hideEvent(QHideEvent *)
{
mCompletionList.clear();
mFullCompletionList.clear();
mParser = nullptr;
}
bool HeaderCompletionPopup::event(QEvent *event)