diff options
Diffstat (limited to 'libs/ardour/export_status.cc')
-rw-r--r-- | libs/ardour/export_status.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/export_status.cc b/libs/ardour/export_status.cc index c64a03fe23..a31e66dc39 100644 --- a/libs/ardour/export_status.cc +++ b/libs/ardour/export_status.cc @@ -34,6 +34,8 @@ ExportStatus::init () stop = false; running = false; _aborted = false; + _finished = false; + _errors = false; stage = export_None; progress = 0.0; @@ -48,4 +50,20 @@ ExportStatus::init () format = 0; } +void +ExportStatus::abort (bool error_occurred) +{ + _aborted = true; + _finished = true; + _errors = _errors || error_occurred; + Aborting (); +} + +void +ExportStatus::finish () +{ + _finished = true; + Finished(); +} + } // namespace ARDOUR |