- fix: File/Project visit histories are not correctly saved when clearing.

This commit is contained in:
Roy Qu 2023-03-31 19:41:52 +08:00
parent 7a64538982
commit 90c8d27307
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ Red Panda C++ Version 2.20
- change: Change compiler set option "Syntax error when object larger than" to "Syntax error when function frame larger than"
- fix: Projects created by some templates are not correct when editor's default encoding is not utf8.
- fix: File/Project visit histories are not correctly saved when clearing.
Red Panda C++ Version 2.19

View File

@ -28,11 +28,13 @@ const QList<PVisitRecord> &VisitHistoryManager::projects() const
void VisitHistoryManager::clearFiles()
{
mFiles.clear();
save();
}
void VisitHistoryManager::clearProjects()
{
mProjects.clear();
save();
}
static int indexOf(const QList<PVisitRecord> &list, const QString& filename) {