mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
Extract the route template descriptions
... and put them into the template info list.
This commit is contained in:
parent
bb20327959
commit
419b1c1cfd
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue