]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/mbarman.mm
free the DIB for raw bitmaps even if they don't use alpha channel
[wxWidgets.git] / src / cocoa / mbarman.mm
index e72220b1e4bbc031bc81c9c2e485c20a103e6126..ecdd3d3c164007ded940f679c7483f89a656f2cb 100644 (file)
@@ -166,11 +166,12 @@ void wxMenuBarManager::WindowDidBecomeKey(wxTopLevelWindowNative *win)
     InstallMenuBarForWindow(win);
 }
 
-void wxMenuBarManager::WindowDidResignKey(wxTopLevelWindowNative *win)
+void wxMenuBarManager::WindowDidResignKey(wxTopLevelWindowNative *win, bool uninstallMenuBar)
 {
     wxASSERT(m_windowKey==win);
     m_windowKey = NULL;
-    SetMenuBar(NULL);
+    if(uninstallMenuBar)
+        SetMenuBar(NULL);
 }
 
 void wxMenuBarManager::WindowDidBecomeMain(wxTopLevelWindowNative *win)