diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-11 14:58:41 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-11 15:24:05 +0200 |
commit | 62ce5465cadaa6cf7e315cb1dc2e61444bc19e01 (patch) | |
tree | b7a5601fda143a8f2cf0b5df0cff534958681826 /libs/ardour/template_utils.cc | |
parent | e3edbcb8065f1367ee82ccf9c7de7719bf270681 (diff) |
Prepare for templates w/description
Diffstat (limited to 'libs/ardour/template_utils.cc')
-rw-r--r-- | libs/ardour/template_utils.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc index 81a7f31078..d355231115 100644 --- a/libs/ardour/template_utils.cc +++ b/libs/ardour/template_utils.cc @@ -94,18 +94,19 @@ find_session_templates (vector<TemplateInfo>& template_names, bool read_xml) for (vector<string>::iterator i = templates.begin(); i != templates.end(); ++i) { string file = session_template_dir_to_file (*i); + TemplateInfo rti; + rti.name = Glib::path_get_basename (*i); + rti.path = *i; + if (read_xml) { XMLTree tree; if (!tree.read (file.c_str())) { continue; } + // TODO extract description, + // compare to Session::get_info_from_path } - TemplateInfo rti; - - rti.name = Glib::path_get_basename (*i); - rti.path = *i; - template_names.push_back (rti); } } |