Fix previous to generate chains if we are starting with no config.xml.
[dcpomatic.git] / src / wx / job_view.cc
index 13c3bc7ab691d2896e3bf4b6982ae02f75e04d27..4aa2e3c2bdd98b305b8eced6889ee72a5b85c57b 100644 (file)
@@ -33,6 +33,7 @@ JobView::JobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wx
        , _table (table)
        , _parent (parent)
        , _container (container)
+       , _gauge (0)
 {
 
 }
@@ -78,7 +79,7 @@ JobView::setup ()
 void
 JobView::maybe_pulse ()
 {
-       if (_job->running() && !_job->progress ()) {
+       if (_gauge && _job->running() && !_job->progress()) {
                _gauge->Pulse ();
        }
 }