Don't try to chop of the file name extension from a template dir
[ardour.git] / libs / ardour / template_utils.cc
index b2fa703060b7ca56e3473dd51184d14d6f023ab1..81a7f31078c5a377d0ea2a6188cff9b4d5a53fc9 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <glibmm.h>
 
-#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<TemplateInfo>& 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);