+ fixes #0001989: 'Open recent' not saved until exit.
This commit is contained in:
parent
4e54841a75
commit
00daa1cbd2
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user