Remove unused header file in gtk2_ardour
[ardour.git] / gtk2_ardour / editor_export_audio.cc
index 2bd607f10871a9a833aced746997eed9b4bccb61..f2cc8e3d048cb6fdb1342d5c524b104e18349373 100644 (file)
@@ -53,7 +53,7 @@
 #include "time_axis_view.h"
 #include "utils.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -125,9 +125,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 +161,6 @@ Editor::export_region ()
                                finished = process_midi_export_dialog (dialog, midi_region);
                                break;
                        default:
-                               finished = true;
                                return;
                        }
                }