summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2016-04-19 14:31:47 +0200
committerPierre Bourdon <delroth@gmail.com>2016-04-19 14:31:47 +0200
commitaebff2c16190fa5c8bedc1923fd71218b10bf022 (patch)
tree47933b6cfcdb87e620adad661d1b0d12aa739a47 /Source
parent5e4554df420ada2735d05038327e804fd4ba4e0a (diff)
parent49babfb60be41f88139f7e71dad30de564780286 (diff)
Merge pull request #3788 from EmptyChaos/close-reclose-bug
CFrame: Fix Confirm Close
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index 1707cf4a51..9a6c70712d 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -576,8 +576,6 @@ void CFrame::OnActive(wxActivateEvent& event)
void CFrame::OnClose(wxCloseEvent& event)
{
- m_bClosing = true;
-
// Before closing the window we need to shut down the emulation core.
// We'll try to close this window again once that is done.
if (Core::GetState() != Core::CORE_UNINITIALIZED)
@@ -587,6 +585,9 @@ void CFrame::OnClose(wxCloseEvent& event)
{
event.Veto();
}
+ // Tell OnStopped to resubmit the Close event
+ if (m_confirmStop)
+ m_bClosing = true;
return;
}