projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb20327
)
Extract the route template descriptions
author
Johannes Mueller
<github@johannes-mueller.org>
Sat, 19 Aug 2017 17:42:38 +0000
(19:42 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sun, 20 Aug 2017 19:09:30 +0000
(21:09 +0200)
... and put them into the template info list.
libs/ardour/template_utils.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/template_utils.cc
b/libs/ardour/template_utils.cc
index 13674cd51defcfcdd56ca5698edf319d2f6748b3..d7e4a3febc4ab267b00af7b5e4a6a4af7d16cae5 100644
(file)
--- 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);
}