From 5c526de39d7d386cbc2552e2a6e09fe0cdc62695 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 19 Jan 2010 06:37:09 +0000 Subject: [PATCH] make stop confirmation blocking. fixes issue 1961 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4884 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/FrameTools.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinWX/Src/FrameTools.cpp b/Source/Core/DolphinWX/Src/FrameTools.cpp index 1841ec03ed..c45ca9f905 100644 --- a/Source/Core/DolphinWX/Src/FrameTools.cpp +++ b/Source/Core/DolphinWX/Src/FrameTools.cpp @@ -693,10 +693,19 @@ void CFrame::DoStop() { if (Core::GetState() != Core::CORE_UNINITIALIZED) { - // Ask for confirmation in case the user accidently clicked Stop / Escape - if(SConfig::GetInstance().m_LocalCoreStartupParameter.bConfirmStop) - if(!AskYesNo("Do want to stop the current emulation?", "Confirm", wxYES_NO)) + // Ask for confirmation in case the user accidentally clicked Stop / Escape + if (SConfig::GetInstance().m_LocalCoreStartupParameter.bConfirmStop) + { + wxMessageDialog dlg( + this, + wxString::FromAscii("Do want to stop the current emulation?"), + wxString::FromAscii("Please confirm..."), + wxYES_NO | wxSTAY_ON_TOP | wxCENTRE, + wxDefaultPosition); + + if (dlg.ShowModal() == wxID_NO) return; + } // TODO: Show the author/description dialog here if(Frame::IsRecordingInput())