send EVT_WIZARD_FINISHED for modal wizards as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -532,11 +532,12 @@ bool wxWizard::ShowPage(wxWizardPage *page, bool goingForward)
|
|||||||
{
|
{
|
||||||
// terminate successfully
|
// terminate successfully
|
||||||
EndModal(wxID_OK);
|
EndModal(wxID_OK);
|
||||||
if ( !IsModal() )
|
|
||||||
{
|
// and notify the user code (this is especially useful for modeless
|
||||||
wxWizardEvent event(wxEVT_WIZARD_FINISHED, GetId(),FALSE, 0);
|
// wizards)
|
||||||
|
wxWizardEvent event(wxEVT_WIZARD_FINISHED, GetId(), FALSE, 0);
|
||||||
(void)GetEventHandler()->ProcessEvent(event);
|
(void)GetEventHandler()->ProcessEvent(event);
|
||||||
}
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user