From 54f525770fe56222fb5552e02ae81c233e7ad165 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 4 Sep 2007 04:47:41 +0000 Subject: [PATCH] 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 --- libs/ardour/session_state.cc | 4 ++-- 1 file 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; }