This creates an export direcory for new sessions. The export dialog will also default to that directory

git-svn-id: svn://localhost/ardour2/trunk@1466 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Doug McLain 2007-02-15 16:44:22 +00:00
parent e72e12d4ba
commit 1cf6978cad
4 changed files with 21 additions and 2 deletions

View file

@ -947,12 +947,12 @@ ExportDialog::start_export ()
}
/* If the filename hasn't been set before, use the
directory above the current session as a default
current session's export directory as a default
location for the export.
*/
if (file_entry.get_text().length() == 0) {
string dir = session->path();
string dir = session->export_dir();
string::size_type last_slash;
if ((last_slash = dir.find_last_of ('/')) != string::npos && last_slash != 0) {