all repos — mgba @ 2a7f642d4cba0e962520135a1dff47095dd78c75

mGBA Game Boy Advance Emulator

Qt: Fix regression with windows not closing
Vicki Pfau vi@endrift.com
Fri, 21 Apr 2017 16:38:26 -0700
commit

2a7f642d4cba0e962520135a1dff47095dd78c75

parent

84dc182a5d5e3bb7113dda93893bbb65faf68f04

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -444,6 +444,7 @@ }

void Window::openView(QWidget* widget) { connect(this, SIGNAL(shutdown()), widget, SLOT(close())); + connect(m_controller, SIGNAL(gameStopped(mCoreThread*)), widget, SLOT(close())); widget->setAttribute(Qt::WA_DeleteOnClose); widget->show(); }