X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fjob_view.cc;h=b98555e8a2b71f519c71c99a7e9a7f12801aa1df;hb=125b8be7877221cdbf96237da7c51af13d7e31ad;hp=d4243cfb1128478ebb2a8f4e8c190bb2fbd43c00;hpb=b9a1ad3df5f9d85fb7439efd93fede72b9b078af;p=dcpomatic.git diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index d4243cfb1..b98555e8a 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -32,10 +32,10 @@ #include "lib/job_manager.h" #include "lib/send_notification_email_job.h" #include "lib/transcode_job.h" -#include "lib/warnings.h" -DCPOMATIC_DISABLE_WARNINGS +#include +LIBDCP_DISABLE_WARNINGS #include -DCPOMATIC_ENABLE_WARNINGS +LIBDCP_ENABLE_WARNINGS #include @@ -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); @@ -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()) {