Merge pull request #691 from Armada651/veto_fix

CFrame: Handle close events that can't be vetoed.
This commit is contained in:
shuffle2 2014-08-12 14:46:01 -07:00
commit d704ebdb40
2 changed files with 8 additions and 2 deletions

View File

@ -507,7 +507,10 @@ void CFrame::OnClose(wxCloseEvent& event)
if (Core::GetState() != Core::CORE_UNINITIALIZED)
{
DoStop();
event.Veto();
if (event.CanVeto())
{
event.Veto();
}
return;
}

View File

@ -806,7 +806,10 @@ void CFrame::OnRenderParentClose(wxCloseEvent& event)
if (Core::GetState() != Core::CORE_UNINITIALIZED)
{
DoStop();
event.Veto();
if (event.CanVeto())
{
event.Veto();
}
return;
}