Hopefully fix disappearing MIDI recorded regions on the first record of a new session.
[ardour.git] / libs / ardour / export_status.cc
index a31e66dc398e1f8a29f5a14024e08d5b25125363..eb0a3504b45e0e19a372eba79add08467c710026 100644 (file)
@@ -18,7 +18,7 @@
 
 */
 
-#include <ardour/export_status.h>
+#include "ardour/export_status.h"
 
 namespace ARDOUR
 {
@@ -36,16 +36,16 @@ ExportStatus::init ()
        _aborted = false;
        _finished = false;
        _errors = false;
-       
+
        stage = export_None;
        progress = 0.0;
-       
+
        total_timespans = 0;
        timespan = 0;
-       
+
        total_channel_configs = 0;
        channel_config = 0;
-       
+
        total_formats = 0;
        format = 0;
 }
@@ -56,6 +56,7 @@ ExportStatus::abort (bool error_occurred)
        _aborted = true;
        _finished = true;
        _errors = _errors || error_occurred;
+       running = false;
        Aborting ();
 }
 
@@ -63,6 +64,7 @@ void
 ExportStatus::finish ()
 {
        _finished = true;
+       running = false;
        Finished();
 }