From c856897b1e2e23cac72fe1d65912b2ac1caf5893 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 8 Jul 2017 17:24:49 -0700 Subject: [PATCH] Qt: Dismiss game crashing/failing dialogs when a new game loads --- CHANGES | 1 + src/platform/qt/Window.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index a7d8d9262..2b3eb9a82 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index a8871a25e..c92d53adf 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -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) {