mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
Use PBD::sys::exists instead of Glib::file_test in Session::load_state
git-svn-id: svn://localhost/ardour2/trunk@2367 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
299b58ebf8
commit
54f525770f
1 changed files with 2 additions and 2 deletions
|
|
@ -663,7 +663,7 @@ Session::load_state (string snapshot_name)
|
||||||
xmlpath += snapshot_name;
|
xmlpath += snapshot_name;
|
||||||
xmlpath += pending_suffix;
|
xmlpath += pending_suffix;
|
||||||
|
|
||||||
if (Glib::file_test (xmlpath, Glib::FILE_TEST_EXISTS)) {
|
if (sys::exists (xmlpath)) {
|
||||||
|
|
||||||
/* there is pending state from a crashed capture attempt */
|
/* there is pending state from a crashed capture attempt */
|
||||||
|
|
||||||
|
|
@ -679,7 +679,7 @@ Session::load_state (string snapshot_name)
|
||||||
xmlpath += statefile_suffix;
|
xmlpath += statefile_suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Glib::file_test (xmlpath, Glib::FILE_TEST_EXISTS)) {
|
if (!sys::exists (xmlpath)) {
|
||||||
error << string_compose(_("%1: session state information file \"%2\" doesn't exist!"), _name, xmlpath) << endmsg;
|
error << string_compose(_("%1: session state information file \"%2\" doesn't exist!"), _name, xmlpath) << endmsg;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue