Corrected behaviour for modeless wizards -- can't detect modal/modeless

state after EndModal is called. Future API might incorporate modal flag
so wxWizard can do the right thing.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-09-18 13:31:50 +00:00
parent 948b08e2ca
commit 36afbc42f8
2 changed files with 39 additions and 15 deletions

View File

@@ -801,16 +801,6 @@ void wxWizard::OnWizEvent(wxWizardEvent& event)
event.Skip();
}
}
if ( !IsModal() &&
event.IsAllowed() &&
( event.GetEventType() == wxEVT_WIZARD_FINISHED ||
event.GetEventType() == wxEVT_WIZARD_CANCEL
)
)
{
Destroy();
}
}
// ----------------------------------------------------------------------------