From c849ecefc25befb30665126af451ff16ce3dba3e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Jul 2006 00:17:42 +0000 Subject: [PATCH] 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 --- src/msw/menu.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.45.2