summaryrefslogtreecommitdiff
path: root/gtk2_ardour/template_dialog.cc
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2017-07-20 20:10:23 +0200
committerJohannes Mueller <github@johannes-mueller.org>2017-07-20 20:10:23 +0200
commit0a462d19645ae4b8c75b49b1b67a789245f31e5d (patch)
treee0a96f7e385196be222204d03032b1147d7f6552 /gtk2_ardour/template_dialog.cc
parent67bec5b5be485df96525efe7d9702e5afcb38696 (diff)
Rename the route in a route template when renaming the template
Diffstat (limited to 'gtk2_ardour/template_dialog.cc')
-rw-r--r--gtk2_ardour/template_dialog.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/template_dialog.cc b/gtk2_ardour/template_dialog.cc
index c437c246aa..435d2c0fb6 100644
--- a/gtk2_ardour/template_dialog.cc
+++ b/gtk2_ardour/template_dialog.cc
@@ -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));