Fix resizeEvent blocking when the thread has shut down
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Oct 2014 01:38:00 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/qt/Display.cpp
→
src/platform/qt/Display.cpp
@@ -69,7 +69,7 @@ swapBuffers();
} void Display::resizeEvent(QResizeEvent* event) { - if (m_painter) { + if (m_drawThread) { QMetaObject::invokeMethod(m_painter, "resize", Qt::BlockingQueuedConnection, Q_ARG(QSize, event->size())); } }