Qt: Dismiss game crashing/failing dialogs when a new game loads

This commit is contained in:
Vicki Pfau 2017-07-08 17:24:49 -07:00
parent fc2a0955f4
commit c856897b1e
2 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,7 @@ Misc:
- PSP2: Update toolchain to use vita.cmake
- Qt: Move shader settings into main settings window
- GB Serialize: Add MBC state serialization
- Qt: Dismiss game crashing/failing dialogs when a new game loads
0.6 beta 1: (2017-06-29)
- Initial beta for 0.6

View File

@ -824,6 +824,7 @@ void Window::gameCrashed(const QString& errorMessage) {
QMessageBox::Ok, this, Qt::Sheet);
crash->setAttribute(Qt::WA_DeleteOnClose);
crash->show();
connect(m_controller, &GameController::gameStarted, crash, &QWidget::close);
}
void Window::gameFailed() {
@ -832,6 +833,7 @@ void Window::gameFailed() {
QMessageBox::Ok, this, Qt::Sheet);
fail->setAttribute(Qt::WA_DeleteOnClose);
fail->show();
connect(m_controller, &GameController::gameStarted, fail, &QWidget::close);
}
void Window::unimplementedBiosCall(int call) {