projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e8ecd32
)
Fix saving sessions on windows by using g_rename instead of ::rename
author
Paul Davis
<paul@linuxaudiosystems.com>
Sat, 13 Jul 2013 21:01:47 +0000
(17:01 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Sat, 13 Jul 2013 21:01:47 +0000
(17:01 -0400)
libs/ardour/session_state.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session_state.cc
b/libs/ardour/session_state.cc
index 7ccaca1a27474559ba3158faed06fdff34a1f7d3..b66969176c265d9d97d53d8fd6adadc9965e11b3 100644
(file)
--- a/
libs/ardour/session_state.cc
+++ b/
libs/ardour/session_state.cc
@@
-807,9
+807,9
@@
Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot
} else {
} else {
- if (
::
rename (tmp_path.c_str(), xml_path.c_str()) != 0) {
- error << string_compose (_("could not rename temporary session file %1 to %2"),
- tmp_path, xml_path) << endmsg;
+ if (
g_
rename (tmp_path.c_str(), xml_path.c_str()) != 0) {
+ error << string_compose (_("could not rename temporary session file %1 to %2
(%3)
"),
+ tmp_path, xml_path
, g_strerror(errno)
) << endmsg;
if (g_remove (tmp_path.c_str()) != 0) {
error << string_compose(_("Could not remove temporary session file at path \"%1\" (%2)"),
tmp_path, g_strerror (errno)) << endmsg;
if (g_remove (tmp_path.c_str()) != 0) {
error << string_compose(_("Could not remove temporary session file at path \"%1\" (%2)"),
tmp_path, g_strerror (errno)) << endmsg;