diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index ec477ed98e..e74323c2e4 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2282,7 +2282,7 @@ void ARDOUR_UI::save_template_dialog_response (int response, SaveTemplateDialog* d) { if (response == RESPONSE_ACCEPT) { - const string name = d->get_template_name (); + const string name = legalize_for_path (d->get_template_name ()); const string desc = d->get_description (); int failed = _session->save_template (name, desc);