diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-09-22 13:21:14 +0100 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-09-22 13:21:14 +0100 |
commit | 45fd3593eba84e2d89290f5112f4541bb9399209 (patch) | |
tree | 7a7b0a1eb8969099e4ce03ca4362aaeca9d27282 /libs/ardour/template_utils.cc | |
parent | 5c7d6ae004356ce4be61c6cc65b9b445c03a0fd4 (diff) |
Fix finding session templates
Session templates are directories: use find_paths_matching_filter() rather
that find_files_matching_filter() to search for them. Fix a tiny comment
typo I spotted along the way too.
Diffstat (limited to 'libs/ardour/template_utils.cc')
-rw-r--r-- | libs/ardour/template_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc index f5a4dc78a6..24674f9226 100644 --- a/libs/ardour/template_utils.cc +++ b/libs/ardour/template_utils.cc @@ -83,7 +83,7 @@ find_session_templates (vector<TemplateInfo>& template_names) { vector<string> templates; - find_files_matching_filter (templates, template_search_path(), template_filter, 0, true, true); + find_paths_matching_filter (templates, template_search_path(), template_filter, 0, true, true); if (templates.empty()) { cerr << "Found nothing along " << template_search_path().to_string() << endl; |