summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 107603c176..04b4974ceb 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -2261,6 +2261,18 @@ Route::_set_state (const XMLNode& node, bool call_base)
delete _control_outs;
_control_outs = new IO (_session, coutname);
+
+ /* fix up the control out name in the XML before setting it.
+ Otherwise track templates don't work because the control
+ outs end up with the stored template name, rather than
+ the new name of the track based on the template.
+ */
+
+ XMLProperty* prop = (*child->children().begin())->property ("name");
+ if (prop) {
+ prop->set_value (coutname);
+ }
+
_control_outs->set_state (**(child->children().begin()));
} else if (child->name() == X_("Comment")) {