mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 09:59:32 -06:00
Do not accept on hotkey syntax errors
Previously you could type whatever gibberish you wanted into the formula bar, press OK, and receive a modal syntax error window. Closing the syntax error window would cause the hotkey config window to close as well, and your gibberish would be applied to the hotkey assignment. This commit requires that a syntax error does not occur before accept() is called.
This commit is contained in:
@ -515,9 +515,11 @@ void IOWindow::OnDialogButtonPressed(QAbstractButton* button)
|
||||
{
|
||||
ModalMessageBox::warning(this, tr("Error"), tr("The expression contains a syntax error."));
|
||||
}
|
||||
|
||||
// must be the OK button
|
||||
accept();
|
||||
else
|
||||
{
|
||||
// must be the OK button
|
||||
accept();
|
||||
}
|
||||
}
|
||||
|
||||
void IOWindow::OnDetectButtonPressed()
|
||||
|
Reference in New Issue
Block a user