projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
299b58e
)
Use PBD::sys::exists instead of Glib::file_test in Session::load_state
author
Tim Mayberry
<mojofunk@gmail.com>
Tue, 4 Sep 2007 04:47:41 +0000
(
04:47
+0000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Tue, 4 Sep 2007 04:47:41 +0000
(
04:47
+0000)
git-svn-id: svn://localhost/ardour2/trunk@2367
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/session_state.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session_state.cc
b/libs/ardour/session_state.cc
index 9a994d3ecad692cf1846e6ec4b587fc9a4bf0659..62f7b4ae7c3bed93cea2a71cdf30c18826b27452 100644
(file)
--- 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;
}