Merge pull request #691 from Armada651/veto_fix
CFrame: Handle close events that can't be vetoed.
This commit is contained in:
commit
d704ebdb40
|
@ -507,7 +507,10 @@ void CFrame::OnClose(wxCloseEvent& event)
|
||||||
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
||||||
{
|
{
|
||||||
DoStop();
|
DoStop();
|
||||||
|
if (event.CanVeto())
|
||||||
|
{
|
||||||
event.Veto();
|
event.Veto();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -806,7 +806,10 @@ void CFrame::OnRenderParentClose(wxCloseEvent& event)
|
||||||
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
||||||
{
|
{
|
||||||
DoStop();
|
DoStop();
|
||||||
|
if (event.CanVeto())
|
||||||
|
{
|
||||||
event.Veto();
|
event.Veto();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue