From 45fd3593eba84e2d89290f5112f4541bb9399209 Mon Sep 17 00:00:00 2001 From: Colin Fletcher Date: Mon, 22 Sep 2014 13:21:14 +0100 Subject: [PATCH] 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. --- gtk2_ardour/session_dialog.cc | 2 +- libs/ardour/template_utils.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index 7d88721eb0..819030f1f9 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -114,7 +114,7 @@ SessionDialog::SessionDialog (bool require_new, const std::string& session_name, get_vbox()->show_all (); - /* fill data models and how/hide accordingly */ + /* fill data models and show/hide accordingly */ populate_session_templates (); 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& template_names) { vector 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;