Extract the route template descriptions
[ardour.git] / libs / ardour / template_utils.cc
index 13674cd51defcfcdd56ca5698edf319d2f6748b3..d7e4a3febc4ab267b00af7b5e4a6a4af7d16cae5 100644 (file)
@@ -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);
        }