fix similar bug with emu settings dialog

also make the reset-warning dialog a bit betterer
This commit is contained in:
Arisotura 2020-07-31 20:51:16 +02:00
parent d21cd20290
commit c5ecef7410
2 changed files with 4 additions and 5 deletions

View File

@ -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';

View File

@ -1661,13 +1661,12 @@ void MainWindow::onOpenEmuSettings()
}
void MainWindow::onEmuSettingsDialogFinished(int res)
{
if (EmuSettingsDialog::needsReset)
{
emuThread->emuUnpause();
if (EmuSettingsDialog::needsReset)
onReset();
}
}
void MainWindow::onOpenInputConfig()
{