summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-22 11:19:34 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-22 11:19:34 -0400
commit20f28c82ecec7725b0fb98dfe0539c0710328678 (patch)
treed1c5e8aaf9cc4fd3c9da7c0df019f9d7a2871ca0 /libs/ardour/session_state.cc
parent04d66a9e3ad2585b4bdd9ea3a022582ec2b9d428 (diff)
make session creation from a template work again
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index c33fd91b5d..049cb5b5ee 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -493,9 +493,10 @@ Session::create (const string& session_template, BusProfile* bus_profile)
ifstream in(in_path.c_str());
if (in) {
- string out_path = _path;
- out_path += _name;
- out_path += statefile_suffix;
+ /* no need to call legalize_for_path() since the string
+ * in session_template is already a legal path name
+ */
+ string out_path = Glib::build_filename (_session_dir->root_path(), _name + statefile_suffix);
ofstream out(out_path.c_str());