projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1fc7aa
)
Don't try to remove pending state file if the file doesn't exist
author
Tim Mayberry
<mojofunk@gmail.com>
Sat, 23 Jun 2012 05:08:29 +0000
(
05:08
+0000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Sat, 23 Jun 2012 05:08:29 +0000
(
05:08
+0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12869
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 39a73d7006b22bdf9ac53d9fac7370a0884c88d7..2eb2bc55c09153942bafaf238bf11d95e536664a 100644
(file)
--- a/
libs/ardour/session_state.cc
+++ b/
libs/ardour/session_state.cc
@@
-632,6
+632,8
@@
Session::remove_pending_capture_state ()
pending_state_file_path = Glib::build_filename (pending_state_file_path, legalize_for_path (_current_snapshot_name) + pending_suffix);
+ if (!Glib::file_test (pending_state_file_path, Glib::FILE_TEST_EXISTS)) return;
+
if (g_remove (pending_state_file_path.c_str()) != 0) {
error << string_compose(_("Could not remove pending capture state at path \"%1\" (%2)"),
pending_state_file_path, g_strerror (errno)) << endmsg;