Disable pause/resume button after job cancellation.
authorCarl Hetherington <cth@carlh.net>
Wed, 13 Nov 2013 10:47:54 +0000 (10:47 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 13 Nov 2013 10:47:54 +0000 (10:47 +0000)
src/wx/job_manager_view.cc

index 47af3b48c9ab06274e835d35678388b2914e9ed1..1b9e281a749c2ab58c9c7cf77b526072654c5ae5 100644 (file)
@@ -44,6 +44,7 @@ public:
                , _window (window)
                , _panel (panel)
                , _table (table)
+               , _pause (0)
        {
                int n = 0;
                
@@ -133,6 +134,9 @@ private:
                }
                
                _cancel->Enable (false);
+               if (_pause) {
+                       _pause->Enable (false);
+               }
                if (!_job->error_details().empty ()) {
                        _details->Enable (true);
                }