From 419b1c1cfdb2f6fee97312ab5b56a8579623534a Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Sat, 19 Aug 2017 19:42:38 +0200 Subject: Extract the route template descriptions ... and put them into the template info list. --- libs/ardour/template_utils.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/ardour/template_utils.cc') 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& 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); } -- cgit v1.2.3