diff options
-rw-r--r-- | libs/ardour/session_state.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index ed1ae82f31..9074a0778c 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -439,9 +439,11 @@ Session::create_session_file () bool Session::create_session_file_from_template (const string& template_path) { - string out_path = _path + _name + statefile_suffix; + sys::path session_file_path(_session_dir->root_path()); - if(!copy_file (template_path, out_path)) { + session_file_path /= _name + statefile_suffix; + + if(!copy_file (template_path, session_file_path.to_string())) { error << string_compose (_("Could not use session template %1 to create new session."), template_path) << endmsg; return false; |