mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix regression with windows not closing
This commit is contained in:
parent
aa611dbbc0
commit
de76a076e8
|
@ -411,6 +411,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