remove ardour_message.{cc,h}; JACK latency menu now shows correct settings at startup...
[ardour.git] / gtk2_ardour / export_dialog.cc
index cf94233072ba15245688e1e9f9aaafb86c029c2f..bd4955933d3bfeecb79085cf493c6bcd4ecb6991 100644 (file)
@@ -915,7 +915,6 @@ ExportDialog::do_export ()
        end_dialog ();
 }
        
-
 void
 ExportDialog::end_dialog ()
 {
@@ -956,11 +955,13 @@ ExportDialog::start_export ()
                string dir = session->path();
                string::size_type last_slash;
                
-               if ((last_slash = dir.find_last_of ('/')) != string::npos) {
+               if ((last_slash = dir.find_last_of ('/')) != string::npos && last_slash != 0) {
                        dir = dir.substr (0, last_slash+1);
                }
 
-               dir = dir + "export.wav";
+               if (!wants_dir()) {
+                       dir = dir + "export.wav";
+               }
                
                file_entry.set_text (dir);
        }