+ fixes #0001989: 'Open recent' not saved until exit.

This commit is contained in:
wmayer 2015-04-11 19:04:31 +02:00
parent 4e54841a75
commit 00daa1cbd2

View File

@ -630,6 +630,15 @@ void RecentFilesAction::appendFile(const QString& filename)
files.removeAll(filename);
files.prepend(filename);
setFiles(files);
// update the XML structure and save the user paramter to disk (#0001989)
bool saveParameter = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/General")->GetBool("SaveUserParameter", true);
if (saveParameter) {
save();
ParameterManager* parmgr = App::GetApplication().GetParameterSet("User parameter");
parmgr->SaveDocument(App::Application::Config()["UserParameter"].c_str());
}
}
/**