mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
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.
This commit is contained in:
parent
5c7d6ae004
commit
45fd3593eb
2 changed files with 2 additions and 2 deletions
|
|
@ -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 ();
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue