make session creation from a template work again
This commit is contained in:
parent
04d66a9e3a
commit
20f28c82ec
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user