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:
Tim Mayberry 2007-09-04 04:47:41 +00:00
parent 299b58ebf8
commit 54f525770f

View file

@ -663,7 +663,7 @@ Session::load_state (string snapshot_name)
xmlpath += snapshot_name;
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 */
@ -679,7 +679,7 @@ Session::load_state (string snapshot_name)
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;
return 1;
}