summaryrefslogtreecommitdiff
path: root/libs/ardour/template_utils.cc
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2017-08-19 19:42:38 +0200
committerRobin Gareus <robin@gareus.org>2017-08-20 21:09:30 +0200
commit419b1c1cfdb2f6fee97312ab5b56a8579623534a (patch)
treecc4718b4424c4125c6e9c4aae0794265997ba0d7 /libs/ardour/template_utils.cc
parentbb2032795941dbb0bf8e8f33a4acc2e075e0104f (diff)
Extract the route template descriptions
... and put them into the template info list.
Diffstat (limited to 'libs/ardour/template_utils.cc')
-rw-r--r--libs/ardour/template_utils.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc
index 13674cd51d..d7e4a3febc 100644
--- a/libs/ardour/template_utils.cc
+++ b/libs/ardour/template_utils.cc
@@ -149,10 +149,17 @@ find_route_templates (vector<TemplateInfo>& template_names)
XMLNode* root = tree.root();
+ string description = "No Description";
+ XMLNode* desc = tree.root()->child ("description");
+ if (desc) {
+ description = desc->attribute_value ();
+ }
+
TemplateInfo rti;
rti.name = IO::name_from_state (*root->children().front());
rti.path = fullpath;
+ rti.description = description;
template_names.push_back (rti);
}