From: Carl Hetherington Date: Wed, 21 Sep 2016 21:38:24 +0000 (+0100) Subject: Confirm dialogue for job cancellation. X-Git-Tag: v2.9.26~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=7ffbb00a0faacce2efb978acc2ff91e15e8ff290 Confirm dialogue for job cancellation. --- diff --git a/ChangeLog b/ChangeLog index 3515b2bb1..21c85e912 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-09-21 Carl Hetherington + * Add confirm dialogue for job cancellation. + * Version 2.9.25 released. 2016-09-21 Carl Hetherington diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index 8718d14e3..136b18ed3 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -121,7 +121,9 @@ JobView::details_clicked (wxCommandEvent &) void JobView::cancel_clicked (wxCommandEvent &) { - _job->cancel (); + if (confirm_dialog (_parent, _("Are you sure you want to cancel this job?"))) { + _job->cancel (); + } } void