Fix resizeEvent blocking when the thread has shut down

This commit is contained in:
Jeffrey Pfau 2014-10-17 01:38:00 -07:00
parent a6f5bbbeb9
commit c91ad7f85f
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ void Display::initializeGL() {
}
void Display::resizeEvent(QResizeEvent* event) {
if (m_painter) {
if (m_drawThread) {
QMetaObject::invokeMethod(m_painter, "resize", Qt::BlockingQueuedConnection, Q_ARG(QSize, event->size()));
}
}