- fix: File/Project visit histories are not correctly saved when clearing.
This commit is contained in:
parent
7a64538982
commit
90c8d27307
1
NEWS.md
1
NEWS.md
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue