summaryrefslogtreecommitdiff
path: root/src/wx/job_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-02-06 10:37:31 +0000
committerCarl Hetherington <cth@carlh.net>2017-02-06 13:23:54 +0000
commit80f6d818e43d3ce2bd2d81f1bd3bbd4160c28aea (patch)
tree93a13d96ca599e44ae32eb598a56c772643d9e00 /src/wx/job_view.cc
parentd1711d4d91322c8559a1adbe53434a25b17b4f7e (diff)
Fix display of progress meter (and crash) when sending emails from the KDM
creator (#1045).
Diffstat (limited to 'src/wx/job_view.cc')
-rw-r--r--src/wx/job_view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc
index 13c3bc7ab..4aa2e3c2b 100644
--- a/src/wx/job_view.cc
+++ b/src/wx/job_view.cc
@@ -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 ();
}
}