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 /src | |
| parent | 43089f429b69f5449e08c810079896b192ec4c14 (diff) | |
Confirm dialogue for job cancellation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/job_view.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
