procparams loading: test for file existence before calling the KeyFile parser
Fixes #4205
This commit is contained in:
@@ -3383,7 +3383,8 @@ int ProcParams::load(const Glib::ustring& fname, ParamsEdited* pedited)
|
|||||||
pedited->set (false);
|
pedited->set (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!keyFile.load_from_file(fname)) {
|
if (!Glib::file_test(fname, Glib::FILE_TEST_EXISTS) ||
|
||||||
|
!keyFile.load_from_file(fname)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user