Fix message for high bitrate frames during verify.
[dcpomatic.git] / src / wx / job_view.cc
index 5a6484f0a3a237e7b62b106efed24df9d1dcf6d0..41a1af0124bc808d7f6f7689b527c5a19ea3dd8b 100644 (file)
@@ -87,7 +87,7 @@ JobView::setup ()
        _controls = new wxBoxSizer (wxVERTICAL);
        _controls->Add (_buttons);
        _notify = new CheckBox (_container, _("Notify when complete"));
-       _notify->Bind (wxEVT_CHECKBOX, bind (&JobView::notify_clicked, this));
+       _notify->bind(&JobView::notify_clicked, this);
        _notify->SetValue (Config::instance()->default_notify());
        _controls->Add (_notify, 0, wxTOP, DCPOMATIC_BUTTON_STACK_GAP);
 
@@ -107,7 +107,7 @@ JobView::maybe_pulse ()
 {
        if (_gauge && _job->running()) {
                auto elapsed = _job->seconds_since_last_progress_update();
-               if (!_job->progress() || !elapsed || *elapsed > 2) {
+               if (!_job->progress() || !elapsed || *elapsed > 4) {
                        _gauge->Pulse ();
                }
        }
@@ -156,9 +156,8 @@ JobView::finished ()
        }
 
        if (_job->message()) {
-               auto d = new MessageDialog (_parent, std_to_wx(_job->name()), std_to_wx(_job->message().get()));
-               d->ShowModal ();
-               d->Destroy ();
+               MessageDialog dialog(_parent, std_to_wx(_job->name()), std_to_wx(_job->message().get()));
+               dialog.ShowModal();
        }
 
        if (_job->enable_notify() && _notify->GetValue()) {