diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-28 03:01:53 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-28 03:01:53 +0100 |
commit | 0c368499f844d79ac6d268f459cd3b00a35e19ca (patch) | |
tree | 9d04c922ceac26b0990e72bbd05e36e10086ab2d /libs/ardour/session.cc | |
parent | 1fa2d15a9d976dd8f7a71baefa090b99ef34f56c (diff) |
Fix route-templates with external sends
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index d6753c50d9..5170456938 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -3439,6 +3439,14 @@ Session::new_route_from_template (uint32_t how_many, PresentationInfo::order_t i (*i)->remove_property (X_("name")); (*i)->set_property ("bitslot", bitslot); (*i)->set_property ("name", name); + XMLNodeList io_kids = (*i)->children (); + for (XMLNodeList::iterator j = io_kids.begin(); j != io_kids.end(); ++j) { + if ((*j)->name() != X_("IO")) { + continue; + } + (*j)->remove_property (X_("name")); + (*j)->set_property ("name", name); + } } else if (type && type->value() == X_("intreturn")) { (*i)->remove_property (X_("bitslot")); |