fixes #0002323: Workbench Start recent list of 3 files is - after a crash - not sync with recent list in File Menu Recent list of 4 files

This commit is contained in:
wmayer
2017-10-05 10:38:42 +02:00
parent ef11efce55
commit 67b990c2b5
6 changed files with 130 additions and 31 deletions

View File

@@ -773,7 +773,6 @@ void RecentFilesAction::save()
->GetGroup("Preferences")->GetGroup("RecentFiles");
int count = hGrp->GetInt("RecentFiles", this->visibleItems); // save number of files
hGrp->Clear();
hGrp->SetInt("RecentFiles", count); // restore
// count all set items
QList<QAction*> recentFiles = _group->actions();
@@ -785,6 +784,8 @@ void RecentFilesAction::save()
break;
hGrp->SetASCII(key.toLatin1(), value.toUtf8());
}
hGrp->SetInt("RecentFiles", count); // restore
}
// --------------------------------------------------------------------