void
ExportDialog::close_dialog ()
{
- if (status->running) {
+ if (status->running ()) {
status->abort();
}
void
ExportDialog::show_progress ()
{
- status->running = true;
-
cancel_button->set_label (_("Stop Export"));
export_button->set_sensitive (false);
gtk_main_iteration ();
- while (status->running) {
+ while (status->running ()) {
if (gtk_events_pending()) {
gtk_main_iteration ();
} else {
audio_progress_connection = Glib::signal_timeout().connect (sigc::mem_fun(*this, &ExportVideoDialog::audio_progress_display), 100);
_previous_progress = 0.0;
- while (status->running) {
+ while (status->running ()) {
if (_aborted) { status->abort(); }
if (gtk_events_pending()) {
gtk_main_iteration ();
// TODO trap SIGINT -> status->abort();
- while (status->running) {
+ while (status->running ()) {
double progress = 0.0;
switch (status->active_job) {
case ExportStatus::Normalizing: