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:
Vadim Zeitlin
2003-10-16 07:22:19 +00:00
parent 5cb4253ec2
commit 64c2fa134b

View File

@@ -532,11 +532,12 @@ bool wxWizard::ShowPage(wxWizardPage *page, bool goingForward)
{
// terminate successfully
EndModal(wxID_OK);
if ( !IsModal() )
{
wxWizardEvent event(wxEVT_WIZARD_FINISHED, GetId(),FALSE, 0);
(void)GetEventHandler()->ProcessEvent(event);
}
// and notify the user code (this is especially useful for modeless
// wizards)
wxWizardEvent event(wxEVT_WIZARD_FINISHED, GetId(), FALSE, 0);
(void)GetEventHandler()->ProcessEvent(event);
return TRUE;
}