X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95e92d90496bd28a220de7314fd55f2915d04da3..37f6a080f43058b4575bece0eb11ad99fa63287d:/src/msw/dialog.cpp diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 1f57be36a8..dcb6304787 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -388,7 +388,7 @@ bool wxDialog::EmulateButtonClickIfPresent(int id) { wxButton *btn = wxDynamicCast(FindWindow(id), wxButton); - if ( !btn || !btn->IsEnabled() ) + if ( !btn || !btn->IsEnabled() || !btn->IsShown() ) return false; btn->MSWCommand(BN_CLICKED, 0 /* unused */);