diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-21 22:38:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-21 22:38:24 +0100 |
| commit | 7ffbb00a0faacce2efb978acc2ff91e15e8ff290 (patch) | |
| tree | a24f41ed5321b881c1e9ca76a3ff1c3e757777aa | |
| parent | 43089f429b69f5449e08c810079896b192ec4c14 (diff) | |
Confirm dialogue for job cancellation.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | src/wx/job_view.cc | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,7 @@ 2016-09-21 Carl Hetherington <cth@carlh.net> + * Add confirm dialogue for job cancellation. + * Version 2.9.25 released. 2016-09-21 Carl Hetherington <cth@carlh.net> 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 |
