Changed GetForce -> !CanVeto
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -589,10 +589,12 @@ bool wxDialog::OnClose()
|
||||
void wxDialog::OnCloseWindow(wxCloseEvent& event)
|
||||
{
|
||||
// Compatibility
|
||||
if ( GetEventHandler()->OnClose() || event.GetForce())
|
||||
if ( GetEventHandler()->OnClose() || !event.CanVeto())
|
||||
{
|
||||
this->Destroy();
|
||||
}
|
||||
else
|
||||
event.Veto(TRUE);
|
||||
}
|
||||
|
||||
// Destroy the window (delayed, if a managed window)
|
||||
|
Reference in New Issue
Block a user