]> git.saurik.com Git - wxWidgets.git/commitdiff
must be static of course, otherwise items just get appended for every menu-build
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 3 May 2005 05:34:53 +0000 (05:34 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 3 May 2005 05:34:53 +0000 (05:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/menu.cpp

index 490a71deec9b24f5b900cb7f861b8b10b9307f27..b6e9dd9d3c1a8461c8cebc04fa8ed8048fcb2ded 100644 (file)
@@ -653,7 +653,7 @@ void wxMenuBar::MacInstallMenuBar()
     MacInsertMenu( appleMenu , 0 ) ;
 
     // clean-up the help menu before adding new items
-    MenuHandle mh = NULL ;
+    static MenuHandle mh = NULL ;
     
     if ( mh != NULL )
     {