mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-25 16:07:49 +01:00
fix bad truncation of export path for export
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3421 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
79ab090830
commit
6935d823df
1 changed files with 3 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue