We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5e1093 commit c454fffCopy full SHA for c454fff
1 file changed
source/interface_derived.cpp
@@ -529,10 +529,12 @@ void MainFrameDerived::SaveProjects(){
529
void MainFrameDerived::SaveEditorVersions(){
530
ofstream file;
531
file.open(datapath / editorPathsFile);
532
- for (auto& p : installPaths){
533
- file << p.string() << endl;
534
- }
535
- file.close();
+ if (file) {
+ for (auto& p : installPaths) {
+ file << p.string() << endl;
+ }
536
+ file.close();
537
538
LoadEditorVersions();
539
}
540
0 commit comments