From bcf5e5a1cc8a0af42712de392ec345ecb1bbb9d8 Mon Sep 17 00:00:00 2001 From: Zenon Seth Date: Tue, 27 May 2025 15:37:34 +0100 Subject: [PATCH] Revert changes to special 'Proceed' button handling --- src/gui/guiFormSpecMenu.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 4b9601430..4901e7e43 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -4849,9 +4849,14 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event) s32 caller_id = event.GUIEvent.Caller->getID(); if (caller_id == 257) { - acceptInput(quit_mode_accept); - m_text_dst->gotText(L"ExitButton"); - quitMenu(); + if (m_allowclose) { + acceptInput(quit_mode_accept); + quitMenu(); + } + else { + acceptInput(); + m_text_dst->gotText(L"ExitButton"); + } return true; }