From 64c2fa134b59340c73bca46c7b8e74a386efd046 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 16 Oct 2003 07:22:19 +0000 Subject: [PATCH] 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 --- src/generic/wizard.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; } -- 2.45.2