mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix regression with windows not closing
This commit is contained in:
parent
84dc182a5d
commit
2a7f642d4c
|
@ -444,6 +444,7 @@ void Window::selectPatch() {
|
||||||
|
|
||||||
void Window::openView(QWidget* widget) {
|
void Window::openView(QWidget* widget) {
|
||||||
connect(this, SIGNAL(shutdown()), widget, SLOT(close()));
|
connect(this, SIGNAL(shutdown()), widget, SLOT(close()));
|
||||||
|
connect(m_controller, SIGNAL(gameStopped(mCoreThread*)), widget, SLOT(close()));
|
||||||
widget->setAttribute(Qt::WA_DeleteOnClose);
|
widget->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
widget->show();
|
widget->show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue