Allow interacting with the render window while configuring controllers

WindowModal allows alt+tabing to the render window, but prohibits interaction
with parent windows (controller settings window and the main dolphin window).
This commit is contained in:
Pokechu22 2019-05-08 17:04:46 -07:00
parent e7bc86881d
commit 7c80fcde53
1 changed files with 8 additions and 2 deletions

View File

@ -426,7 +426,10 @@ void ControllersWindow::OnGCPadConfigure()
return;
}
MappingWindow(this, type, static_cast<int>(index)).exec();
MappingWindow* window = new MappingWindow(this, type, static_cast<int>(index));
window->setAttribute(Qt::WA_DeleteOnClose, true);
window->setWindowModality(Qt::WindowModality::WindowModal);
window->show();
}
void ControllersWindow::OnWiimoteConfigure()
@ -451,7 +454,10 @@ void ControllersWindow::OnWiimoteConfigure()
return;
}
MappingWindow(this, type, static_cast<int>(index)).exec();
MappingWindow* window = new MappingWindow(this, type, static_cast<int>(index));
window->setAttribute(Qt::WA_DeleteOnClose, true);
window->setWindowModality(Qt::WindowModality::WindowModal);
window->show();
}
void ControllersWindow::LoadSettings()