diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2017-08-19 19:42:38 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-20 21:09:30 +0200 |
commit | 419b1c1cfdb2f6fee97312ab5b56a8579623534a (patch) | |
tree | cc4718b4424c4125c6e9c4aae0794265997ba0d7 /libs/ardour/template_utils.cc | |
parent | bb2032795941dbb0bf8e8f33a4acc2e075e0104f (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.cc | 7 |
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); } |