Templates: Dim the border around template description text.
[ardour.git] / gtk2_ardour / editor_export_audio.cc
index 795091fb4142e846753dd1013bd83e7b272925a4..1a4f88e2f26f04ae0ce531ccea23011e53a19884 100644 (file)
@@ -27,8 +27,6 @@
 
 #include "pbd/gstdio_compat.h"
 
-#include "gtkmm2ext/choice.h"
-
 #include "pbd/pthread_utils.h"
 
 #include "ardour/audio_track.h"
@@ -125,9 +123,7 @@ Editor::process_midi_export_dialog (MidiExportDialog& dialog, boost::shared_ptr<
                ::g_unlink (path.c_str());
        }
 
-       (void) midi_region->clone (path);
-
-       return true;
+       return midi_region->do_export (path);
 }
 
 /** Export the first selected region */
@@ -163,7 +159,6 @@ Editor::export_region ()
                                finished = process_midi_export_dialog (dialog, midi_region);
                                break;
                        default:
-                               finished = true;
                                return;
                        }
                }