From b7e22e3d27626ad19815517d5385aafa0be9d06b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 20 Sep 2005 10:06:58 +0000 Subject: [PATCH] Removed unnecessary IsModal call git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/wizard.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 099e53a67e..c3884c0771 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -812,8 +812,7 @@ void wxWizard::OnWizEvent(wxWizardEvent& event) } } - if ( !IsModal() && - ( modelessWizards.Index(this) != wxNOT_FOUND ) && + if ( ( modelessWizards.Index(this) != wxNOT_FOUND ) && event.IsAllowed() && ( event.GetEventType() == wxEVT_WIZARD_FINISHED || event.GetEventType() == wxEVT_WIZARD_CANCEL -- 2.50.0