diff options
Diffstat (limited to 'src/frontend/qt_sdl/EmuSettingsDialog.cpp')
-rw-r--r-- | src/frontend/qt_sdl/EmuSettingsDialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/EmuSettingsDialog.cpp b/src/frontend/qt_sdl/EmuSettingsDialog.cpp index 9ee7b9a..77301b7 100644 --- a/src/frontend/qt_sdl/EmuSettingsDialog.cpp +++ b/src/frontend/qt_sdl/EmuSettingsDialog.cpp @@ -34,6 +34,7 @@ EmuSettingsDialog* EmuSettingsDialog::currentDlg = nullptr; extern char* EmuDirectory; extern bool RunningSomething; +bool EmuSettingsDialog::needsReset = false; EmuSettingsDialog::EmuSettingsDialog(QWidget* parent) : QDialog(parent), ui(new Ui::EmuSettingsDialog) { @@ -121,6 +122,8 @@ void EmuSettingsDialog::verifyFirmware() void EmuSettingsDialog::done(int r) { + needsReset = false; + if (r == QDialog::Accepted) { verifyFirmware(); @@ -186,6 +189,8 @@ void EmuSettingsDialog::done(int r) Config::DirectBoot = directBoot; Config::Save(); + + needsReset = true; } } |