Use g_remove instead of sys::remove in Session::remove_state
git-svn-id: svn://localhost/ardour2/branches/3.0@12870 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
695b666430
commit
b5d1dbf62f
@ -691,7 +691,10 @@ Session::remove_state (string snapshot_name)
|
||||
}
|
||||
|
||||
// and delete it
|
||||
sys::remove (xml_path);
|
||||
if (g_remove (xml_path.c_str()) != 0) {
|
||||
error << string_compose(_("Could not remove state file at path \"%1\" (%2)"),
|
||||
xml_path, g_strerror (errno)) << endmsg;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_JACK_SESSION
|
||||
|
Loading…
Reference in New Issue
Block a user