From eb79ae7d415294789fa9056511ae27215449bfe3 Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Mon, 3 Jul 2017 00:27:18 +0200 Subject: Don't try to chop of the file name extension from a template dir Template files reside in .config/ardour5/templates/$(template_name)/$(template_name).template We run through .config/ardour5/templates/ and find there the names of the directories the .template-files are located in. These directory names don't have a .template extension. So we shouldn't try to chop the non existing extension of, because then we only modify template names with a '.' in them. --- libs/ardour/template_utils.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs') diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc index b2fa703060..81a7f31078 100644 --- a/libs/ardour/template_utils.cc +++ b/libs/ardour/template_utils.cc @@ -22,7 +22,6 @@ #include -#include "pbd/basename.h" #include "pbd/file_utils.h" #include "pbd/stl_delete.h" #include "pbd/xml++.h" @@ -104,7 +103,7 @@ find_session_templates (vector& template_names, bool read_xml) TemplateInfo rti; - rti.name = basename_nosuffix (*i); + rti.name = Glib::path_get_basename (*i); rti.path = *i; template_names.push_back (rti); -- cgit v1.2.3