mirror of https://github.com/mgba-emu/mgba.git
Fix resizeEvent blocking when the thread has shut down
This commit is contained in:
parent
a6f5bbbeb9
commit
c91ad7f85f
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue