]> git.saurik.com Git - wxWidgets.git/commitdiff
don't crash if we have no accelerators for the "Window" menu items
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Jan 2009 12:51:38 +0000 (12:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Jan 2009 12:51:38 +0000 (12:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/mdi.cpp

index 0a72ab2ea7abdb06c253ad09b84e797dd984fd52..7ea3a70a66172edd62caf939ca533a0fb5a060ff 100644 (file)
@@ -732,7 +732,7 @@ bool wxMDIParentFrame::MSWTranslateMessage(WXMSG* msg)
     // but it doesn't check for the (custom) accelerators of the window menu
     // items as it's not part of the menu bar as it's handled by Windows itself
     // so we need to do this explicitly
-    if ( m_accelWindowMenu->Translate(this, msg) )
+    if ( m_accelWindowMenu && m_accelWindowMenu->Translate(this, msg) )
         return true;
 #endif // wxUSE_MENUS && wxUSE_ACCEL