Confirm dialogue for job cancellation.
authorCarl Hetherington <cth@carlh.net>
Wed, 21 Sep 2016 21:38:24 +0000 (22:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 21 Sep 2016 21:38:24 +0000 (22:38 +0100)
ChangeLog
src/wx/job_view.cc

index 3515b2bb12570266452b5024218b600ba8ba1437..21c85e91229883e93f66a5eca9f90c65fd6b8cbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
index 8718d14e336888fa418e2289b022ef5623a51322..136b18ed39fb75eedf782e1b2ac1caae171a7a2f 100644 (file)
@@ -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