13
0

make session creation from a template work again

This commit is contained in:
Paul Davis 2013-09-22 11:19:34 -04:00
parent 04d66a9e3a
commit 20f28c82ec
2 changed files with 5 additions and 5 deletions

View File

@ -203,9 +203,8 @@ ArdourStartup::use_session_template ()
}
if (use_template_button.get_active()) {
return template_chooser.get_active_row_number() > 0;
return true;
}
return false;
}

View File

@ -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());