Remove wxASSERT(!m_windowKey) and wxASSERT(!m_windowMain). When a window
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user