Do interruption of ThreadStaticText properly.
[dcpomatic.git] / src / wx / wx_util.cc
index 712e235700b5776a5dc18bedba260775795bed0a..44d9462e504404e1379111eb5effdc59cfb2aac3 100644 (file)
@@ -70,7 +70,7 @@ ThreadedStaticText::ThreadedStaticText (wxWindow* parent, string initial, functi
 
 ThreadedStaticText::~ThreadedStaticText ()
 {
-       /* XXX: this is a bit unfortunate */
+       _thread->interrupt ();
        _thread->join ();
        delete _thread;
 }