Rename the route in a route template when renaming the template
authorJohannes Mueller <github@johannes-mueller.org>
Thu, 20 Jul 2017 18:10:23 +0000 (20:10 +0200)
committerJohannes Mueller <github@johannes-mueller.org>
Thu, 20 Jul 2017 18:10:23 +0000 (20:10 +0200)
gtk2_ardour/template_dialog.cc

index c437c246aac97d7df974aa0dd9ab21bd0a82c051..435d2c0fb6af9cf0e7e45fe66407e87b70ea1666 100644 (file)
@@ -560,6 +560,7 @@ RouteTemplateManager::rename_template (TreeModel::iterator& item, const Glib::us
                error << string_compose (_("Could not parse template file \"%1\"."), old_filepath) << endmsg;
                return;
        }
+       tree.root()->set_property (X_("name"), new_name);
        tree.root()->children().front()->set_property (X_("name"), new_name);
 
        const bool adjusted = adjust_plugin_paths (tree.root(), old_name, string (new_name));