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
This commit is contained in:
parent
4de4c2aab4
commit
dcc6d27390
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user