Commit 161f5096 authored by Daniel Stonier's avatar Daniel Stonier

make sure children are included in the moveToThread

parent e638b9e8
......@@ -740,14 +740,14 @@ double cvGetOpenGlProp_QT(const char* name)
GuiReceiver::GuiReceiver() : bTimeOut(false), nb_windows(0)
{
doesExternalQAppExist = (QApplication::instance() != 0);
if ( doesExternalQAppExist ) {
moveToThread(QApplication::instance()->thread());
}
icvInitSystem(&parameterSystemC, parameterSystemV);
timer = new QTimer(this);
QObject::connect(timer, SIGNAL(timeout()), this, SLOT(timeOut()));
timer->setSingleShot(true);
if ( doesExternalQAppExist ) {
moveToThread(QApplication::instance()->thread());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment