diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-07-31 20:51:16 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-07-31 20:51:16 +0200 |
commit | c5ecef7410c1fefb7d62af898221228128233f8d (patch) | |
tree | d587b2bbc0179f287ce976c5dab9d0478270a310 | |
parent | d21cd202908ca17f1224992ed6e4669c2a09a395 (diff) |
fix similar bug with emu settings dialog
also make the reset-warning dialog a bit betterer
-rw-r--r-- | src/frontend/qt_sdl/EmuSettingsDialog.cpp | 4 | ||||
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/frontend/qt_sdl/EmuSettingsDialog.cpp b/src/frontend/qt_sdl/EmuSettingsDialog.cpp index 64950e8..dc7eaf5 100644 --- a/src/frontend/qt_sdl/EmuSettingsDialog.cpp +++ b/src/frontend/qt_sdl/EmuSettingsDialog.cpp @@ -165,8 +165,8 @@ void EmuSettingsDialog::done(int r) { if (RunningSomething && QMessageBox::warning(this, "Reset necessary to apply changes", - "The emulation will be reset for the changes to take place", - QMessageBox::Yes, QMessageBox::Cancel) != QMessageBox::Yes) + "The emulation will be reset for the changes to take place.", + QMessageBox::Ok, QMessageBox::Cancel) != QMessageBox::Ok) return; strncpy(Config::BIOS9Path, bios9Path.c_str(), 1023); Config::BIOS9Path[1023] = '\0'; diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 4f90ebe..e7f35c2 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -1662,11 +1662,10 @@ void MainWindow::onOpenEmuSettings() void MainWindow::onEmuSettingsDialogFinished(int res) { + emuThread->emuUnpause(); + if (EmuSettingsDialog::needsReset) - { - emuThread->emuUnpause(); onReset(); - } } void MainWindow::onOpenInputConfig() |