summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:35 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:35 +0000
commitdcc6d273903e468132027085bf32412d8d080230 (patch)
tree2e824f0d7f8a1ca400b81979ecded42e891621d7 /libs/ardour/session_state.cc
parent4de4c2aab4c8c6116246cd7b885e9de4ad3ab19c (diff)
Use g_remove instead of PBD::sys::remove in Session::save_state
git-svn-id: svn://localhost/ardour2/branches/3.0@12872 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 56d9bcc004..edba65b64a 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -3280,7 +3280,10 @@ Session::save_history (string snapshot_name)
try
{
- sys::remove (xml_path);
+ if (g_remove (xml_path.to_string().c_str()) != 0) {
+ error << string_compose(_("Could not remove history file at path \"%1\" (%2)"),
+ xml_path.to_string(), g_strerror (errno)) << endmsg;
+ }
sys::rename (backup_path, xml_path);
}
catch (const sys::filesystem_error& err)