Qt: Fix regression with windows not closing

This commit is contained in:
Vicki Pfau 2017-04-21 16:38:26 -07:00
parent 84dc182a5d
commit 2a7f642d4c
1 changed files with 1 additions and 0 deletions

View File

@ -444,6 +444,7 @@ void Window::selectPatch() {
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();
}