summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-09-04 04:47:41 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-09-04 04:47:41 +0000
commit54f525770fe56222fb5552e02ae81c233e7ad165 (patch)
treec6eeb69c3fd243da43f0890d7814a783f626dcb9 /libs
parent299b58ebf8982e0edec2f327ac70e8c1f61ca0a1 (diff)
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
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session_state.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 9a994d3eca..62f7b4ae7c 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -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;
}