Use the new do_export() method when asked to export
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 20 Jul 2016 00:01:16 +0000 (02:01 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 20 Jul 2016 00:01:40 +0000 (02:01 +0200)
gtk2_ardour/editor_export_audio.cc

index 795091fb4142e846753dd1013bd83e7b272925a4..c1def2ba29451970933ef17c0a31d3dd207a42a9 100644 (file)
@@ -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 */