diff --git a/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp index 0deb4f5293..9f3c596463 100644 --- a/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp @@ -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()