mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
fix failure to find route templates
git-svn-id: svn://localhost/ardour2/branches/3.0@11319 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4c224ef955
commit
bc3e1a2122
1 changed files with 11 additions and 1 deletions
|
|
@ -75,6 +75,16 @@ template_filter (const string &str, void */*arg*/)
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
route_template_filter (const string &str, void */*arg*/)
|
||||
{
|
||||
if (str.find (template_suffix) == str.length() - strlen (template_suffix)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
string
|
||||
session_template_dir_to_file (string const & dir)
|
||||
{
|
||||
|
|
@ -130,7 +140,7 @@ find_route_templates (vector<TemplateInfo>& template_names)
|
|||
SearchPath spath (system_route_template_directory());
|
||||
spath += user_route_template_directory ();
|
||||
|
||||
templates = scanner (spath.to_string(), template_filter, 0, false, true);
|
||||
templates = scanner (spath.to_string(), route_template_filter, 0, false, true);
|
||||
|
||||
if (!templates) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue