summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-05-29 13:36:17 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-05-29 13:36:17 +0000
commit6935d823df2e49cb0e711e08f970e5cef0965a93 (patch)
treece4be62f3a40e8538234407c09bd6105f854a687 /gtk2_ardour
parent79ab09083010806d9dec1650088069c422acd30f (diff)
fix bad truncation of export path for export
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3421 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/export_dialog.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/gtk2_ardour/export_dialog.cc b/gtk2_ardour/export_dialog.cc
index e186f3712e..b6bc69c9b9 100644
--- a/gtk2_ardour/export_dialog.cc
+++ b/gtk2_ardour/export_dialog.cc
@@ -1016,18 +1016,13 @@ ExportDialog::start_export ()
*/
if (file_entry.get_text().length() == 0) {
- string dir = session->export_dir();
- string::size_type last_slash;
-
- if ((last_slash = dir.find_last_of (G_DIR_SEPARATOR_S)) != string::npos && last_slash != 0) {
- dir = dir.substr (0, last_slash+1);
- }
+ Glib::ustring export_path = session->export_dir();
if (!wants_dir()) {
- dir = dir + "export.wav"; // Glib::build_filename() ?
+ export_path = Glib::build_filename (export_path, "export.wav");
}
- file_entry.set_text (dir);
+ file_entry.set_text (export_path);
}
progress_bar.set_fraction (0);