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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user