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 150272083b
commit d7151e381d
2 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,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) {