diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 6dc0d62e04..c7baa0359c 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -284,7 +284,7 @@ int wxDialog::ShowModal() // EndModal may have been called from InitDialog handler (called from // inside Show()) and hidden the dialog back again - if ( !IsShown() ) + if ( IsShown() ) { // enter and run the modal loop wxDialogModalDataTiedPtr modalData(&m_modalData,