diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:07:05 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:07:05 +0000 |
commit | 306e6475e52e6a8fe308702520f61fbcd17c5ece (patch) | |
tree | 3c81ad61db7a8daa6100c54df3c92eddbab81234 /gtk2_ardour/startup.cc | |
parent | 0f482627a59f37ab9aa24a9ac757e69039467988 (diff) |
Replace use of PBD::sys::path in ardour/template_utils.h
some associated changes from not including pbd/filesystem.h in template_utils.h
git-svn-id: svn://localhost/ardour2/branches/3.0@12833 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/startup.cc')
-rw-r--r-- | gtk2_ardour/startup.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/startup.cc b/gtk2_ardour/startup.cc index 26f4afafa0..ee598b08cb 100644 --- a/gtk2_ardour/startup.cc +++ b/gtk2_ardour/startup.cc @@ -38,6 +38,7 @@ #include "ardour/session.h" #include "ardour/session_state_utils.h" #include "ardour/template_utils.h" +#include "ardour/filename_extensions.h" #include "ardour_ui.h" #include "startup.h" @@ -246,8 +247,8 @@ std::string ArdourStartup::session_template_name () { if (!load_template_override.empty()) { - string the_path = (ARDOUR::user_template_directory()/ (load_template_override + ".template")).to_string(); - return the_path; + string the_path(ARDOUR::user_template_directory()); + return Glib::build_filename (the_path, load_template_override + ARDOUR::template_suffix); } if (ic_existing_session_button.get_active()) { |