Fix finding session templates
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Mon, 22 Sep 2014 12:21:14 +0000 (13:21 +0100)
committerColin Fletcher <colin.m.fletcher@googlemail.com>
Mon, 22 Sep 2014 12:21:14 +0000 (13:21 +0100)
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
libs/ardour/template_utils.cc

index 7d88721eb0d61968207e8c9db8a3016a6c867d0a..819030f1f9cabcd60350250229e96895135db4ff 100644 (file)
@@ -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 ();
 
index f5a4dc78a6bcd1384666f774408da68e3d192a6b..24674f9226e14d5c0ebb57bfebeaae41541d3059 100644 (file)
@@ -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;