From: Julian Smart Date: Sat, 17 Jul 2004 15:04:19 +0000 (+0000) Subject: Ensure we don't get an empty help menu on Mac X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/322a5b45fe844440a61c197532f592278fc7f716?ds=inline Ensure we don't get an empty help menu on Mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 61d4a1b72c..cfd698380d 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -328,6 +328,8 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id, wxMenu* helpMenu = new wxMenu; helpMenu->Append(wxID_ABOUT, _("&About...")); + // Ensures we don't get an empty help menu + helpMenu->Append(wxID_HELP_CONTENTS, _("&About...")); menuBar->Append(fileMenu,_("&File")); menuBar->Append(helpMenu,_("&Help")); @@ -1768,6 +1770,7 @@ BEGIN_EVENT_TABLE(wxHtmlHelpFrame, wxFrame) #ifdef __WXMAC__ EVT_MENU(wxID_CLOSE, wxHtmlHelpFrame::OnClose) EVT_MENU(wxID_ABOUT, wxHtmlHelpFrame::OnAbout) + EVT_MENU(wxID_HELP_CONTENTS, wxHtmlHelpFrame::OnAbout) #endif END_EVENT_TABLE()