procparams loading: test for file existence before calling the KeyFile parser
Fixes #4205
This commit is contained in:
parent
7cde837a15
commit
58c9f5a4da
@ -3383,7 +3383,8 @@ int ProcParams::load(const Glib::ustring& fname, ParamsEdited* pedited)
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user