summaryrefslogtreecommitdiff
path: root/src/wx/job_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-07 16:05:43 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-07 16:05:43 +0100
commit538af3d961b5017303cedb56fa35c9be23d1658a (patch)
tree5e1edb101585afa4e6bba75a9e2b7b49ffc00406 /src/wx/job_view.cc
parent2860640c7cf39410bfb21f69ce05e345e9078fa3 (diff)
Remove some flawed condition manipulation.
I think this stuff is unnecessary as wait() is interruptible by boost::thread::interrupt. Hence instead of setting a flag then signalling the condition we can just do interrupt(), the exception will be thrown and that's that.
Diffstat (limited to 'src/wx/job_view.cc')
-rw-r--r--src/wx/job_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc
index 8718d14e3..767c7ca5a 100644
--- a/src/wx/job_view.cc
+++ b/src/wx/job_view.cc
@@ -39,7 +39,7 @@ JobView::JobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wx
/* This seems to be required to allow the gauge to shrink under OS X */
_gauge->SetMinSize (wxSize (0, -1));
_gauge_message->Add (_gauge, 0, wxEXPAND | wxLEFT | wxRIGHT);
- _message = new wxStaticText (container, wxID_ANY, wxT (" \n "));
+ _message = new wxStaticText (container, wxID_ANY, wxT (" \n "), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE);
_gauge_message->Add (_message, 1, wxEXPAND | wxALIGN_CENTER_VERTICAL | wxALL, 6);
table->Insert (n, _gauge_message, 1, wxEXPAND | wxLEFT | wxRIGHT);
++n;