Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #691 from Armada651/veto_fix
CFrame: Handle close events that can't be vetoed.
  • Loading branch information
shuffle2 committed Aug 12, 2014
2 parents d1702b1 + e07c06c commit d704ebd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Source/Core/DolphinWX/Frame.cpp
Expand Up @@ -507,7 +507,10 @@ void CFrame::OnClose(wxCloseEvent& event)
if (Core::GetState() != Core::CORE_UNINITIALIZED)
{
DoStop();
event.Veto();
if (event.CanVeto())
{
event.Veto();
}
return;
}

Expand Down
5 changes: 4 additions & 1 deletion Source/Core/DolphinWX/FrameTools.cpp
Expand Up @@ -806,7 +806,10 @@ void CFrame::OnRenderParentClose(wxCloseEvent& event)
if (Core::GetState() != Core::CORE_UNINITIALIZED)
{
DoStop();
event.Veto();
if (event.CanVeto())
{
event.Veto();
}
return;
}

Expand Down

0 comments on commit d704ebd

Please sign in to comment.