From 908369ab3e31f82eae3734cfe61421912d2fba6a Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Sat, 19 Aug 2017 00:04:07 +0200 Subject: Save template description at toplevel rather than in --- libs/ardour/template_utils.cc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc index 75c8d5b9af..13674cd51d 100644 --- a/libs/ardour/template_utils.cc +++ b/libs/ardour/template_utils.cc @@ -111,19 +111,16 @@ find_session_templates (vector& template_names, bool read_xml) if (pv != 0) { pv->get_property (X_("created-with"), created_with); } - + string description = "No Description"; - XMLNode *md = tree.root()->child("Metadata"); - if (md != 0) { - XMLNode *desc = md->child("description"); - if (desc != 0) { - description = desc->attribute_value(); - } + XMLNode *desc = tree.root()->child("description"); + if (desc != 0) { + description = desc->attribute_value(); } - + rti.created_with = created_with; rti.description = description; - + } template_names.push_back (rti); -- cgit v1.2.3