summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:07:05 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:07:05 +0000
commit306e6475e52e6a8fe308702520f61fbcd17c5ece (patch)
tree3c81ad61db7a8daa6100c54df3c92eddbab81234 /gtk2_ardour/route_ui.cc
parent0f482627a59f37ab9aa24a9ac757e69039467988 (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/route_ui.cc')
-rw-r--r--gtk2_ardour/route_ui.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index ff970bc5a1..0da6bde4f0 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -1628,14 +1628,14 @@ RouteUI::adjust_latency ()
void
RouteUI::save_as_template ()
{
- sys::path path;
+ std::string path;
std::string safe_name;
string name;
path = ARDOUR::user_route_template_directory ();
- if (g_mkdir_with_parents (path.to_string().c_str(), 0755)) {
- error << string_compose (_("Cannot create route template directory %1"), path.to_string()) << endmsg;
+ if (g_mkdir_with_parents (path.c_str(), 0755)) {
+ error << string_compose (_("Cannot create route template directory %1"), path) << endmsg;
return;
}
@@ -1657,9 +1657,9 @@ RouteUI::save_as_template ()
safe_name = legalize_for_path (name);
safe_name += template_suffix;
- path /= safe_name;
+ path = Glib::build_filename (path, safe_name);
- _route->save_as_template (path.to_string(), name);
+ _route->save_as_template (path, name);
}
void