From: Vadim Zeitlin Date: Thu, 16 Oct 2003 07:22:19 +0000 (+0000) Subject: send EVT_WIZARD_FINISHED for modal wizards as well X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/64c2fa134b59340c73bca46c7b8e74a386efd046 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 --- diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 97da14ec8b..532315b1f8 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -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; }