From 7ffbb00a0faacce2efb978acc2ff91e15e8ff290 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 21 Sep 2016 22:38:24 +0100 Subject: Confirm dialogue for job cancellation. --- src/wx/job_view.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3