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:
Colin Fletcher 2014-09-22 13:21:14 +01:00
parent 5c7d6ae004
commit 45fd3593eb
2 changed files with 2 additions and 2 deletions

View 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 ();

View 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;