Qt: Fix regression with windows not closing

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

View File

@ -411,6 +411,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();
}