From 768f2dc76806d59159cd0cc87ab6bee179b685db Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 20 Oct 2025 16:59:13 +0200 Subject: [PATCH] Clarify message about track/bus name restrictions see also 5b746b186a9. Route::ensure_track_or_route_name uses `legalize_for_universal_path`. --- gtk2_ardour/route_ui.cc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index c900e5d244..e8936be4a6 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -1747,19 +1747,16 @@ RouteUI::set_color_from_route () bool RouteUI::verify_new_route_name (const std::string& name) { - if (name.find (':') == string::npos) { + if (name == legalize_for_universal_path (name)) { return true; } - MessageDialog colon_msg ( - _("The use of colons (':') is discouraged in track and bus names.\nDo you want to use this new name?"), - false, MESSAGE_QUESTION, BUTTONS_NONE - ); + MessageDialog ( + _("The name includes special characters (<>:\"/\\|?*) which is discouraged in track and bus names, due to filename restrictiosn on some systems.\n"), + false, MESSAGE_INFO, BUTTONS_OK + ).run (); - colon_msg.add_button (_("Use the new name"), Gtk::RESPONSE_ACCEPT); - colon_msg.add_button (_("Re-edit the name"), Gtk::RESPONSE_CANCEL); - - return (colon_msg.run () == Gtk::RESPONSE_ACCEPT); + return false; } void