]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove wxASSERT(!m_windowKey) and wxASSERT(!m_windowMain). When a window
authorDavid Elliott <dfe@tgwbd.org>
Mon, 8 Sep 2003 19:44:40 +0000 (19:44 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 8 Sep 2003 19:44:40 +0000 (19:44 +0000)
is destroyed it doesn't resign key or main status.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/mbarman.mm

index e72220b1e4bbc031bc81c9c2e485c20a103e6126..b2b916054d5b8d502a20357107665708c960901c 100644 (file)
@@ -161,7 +161,7 @@ void wxMenuBarManager::InstallMainMenu()
 
 void wxMenuBarManager::WindowDidBecomeKey(wxTopLevelWindowNative *win)
 {
-    wxASSERT(!m_windowKey);
+//    wxASSERT(!m_windowKey);
     m_windowKey = win;
     InstallMenuBarForWindow(win);
 }
@@ -175,7 +175,7 @@ void wxMenuBarManager::WindowDidResignKey(wxTopLevelWindowNative *win)
 
 void wxMenuBarManager::WindowDidBecomeMain(wxTopLevelWindowNative *win)
 {
-    wxASSERT(!m_windowMain);
+//    wxASSERT(!m_windowMain);
     m_windowMain = win;
 }