mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Template [file]names cannot have dir-separators
This commit is contained in:
parent
d55d3a7360
commit
576f10b6f1
1 changed files with 1 additions and 1 deletions
|
|
@ -1942,7 +1942,7 @@ RouteUI::save_as_template_dialog_response (int response, SaveTemplateDialog* d)
|
||||||
if (response == RESPONSE_ACCEPT) {
|
if (response == RESPONSE_ACCEPT) {
|
||||||
const string name = d->get_template_name ();
|
const string name = d->get_template_name ();
|
||||||
const string desc = d->get_description ();
|
const string desc = d->get_description ();
|
||||||
const string path = Glib::build_filename(ARDOUR::user_route_template_directory (), name + ARDOUR::template_suffix);
|
const string path = Glib::build_filename(ARDOUR::user_route_template_directory (), legalize_for_path (name) + ARDOUR::template_suffix);
|
||||||
|
|
||||||
if (Glib::file_test (path, Glib::FILE_TEST_EXISTS)) { /* file already exists. */
|
if (Glib::file_test (path, Glib::FILE_TEST_EXISTS)) { /* file already exists. */
|
||||||
bool overwrite = overwrite_file_dialog (*d,
|
bool overwrite = overwrite_file_dialog (*d,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue