From: Vadim Zeitlin Date: Sun, 2 Jul 2006 00:17:42 +0000 (+0000) Subject: don't refresh the menu if it's frozen X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c849ecefc25befb30665126af451ff16ce3dba3e?ds=sidebyside don't refresh the menu if it's frozen git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index cdec3e7a1c..2b4f7f10f8 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -847,6 +847,9 @@ wxMenuBar::~wxMenuBar() void wxMenuBar::Refresh() { + if ( IsFrozen() ) + return; + wxCHECK_RET( IsAttached(), wxT("can't refresh unattached menubar") ); #if defined(WINCE_WITHOUT_COMMANDBAR)