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
This commit is contained in:
@@ -328,6 +328,8 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id,
|
|||||||
|
|
||||||
wxMenu* helpMenu = new wxMenu;
|
wxMenu* helpMenu = new wxMenu;
|
||||||
helpMenu->Append(wxID_ABOUT, _("&About..."));
|
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(fileMenu,_("&File"));
|
||||||
menuBar->Append(helpMenu,_("&Help"));
|
menuBar->Append(helpMenu,_("&Help"));
|
||||||
@@ -1768,6 +1770,7 @@ BEGIN_EVENT_TABLE(wxHtmlHelpFrame, wxFrame)
|
|||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
EVT_MENU(wxID_CLOSE, wxHtmlHelpFrame::OnClose)
|
EVT_MENU(wxID_CLOSE, wxHtmlHelpFrame::OnClose)
|
||||||
EVT_MENU(wxID_ABOUT, wxHtmlHelpFrame::OnAbout)
|
EVT_MENU(wxID_ABOUT, wxHtmlHelpFrame::OnAbout)
|
||||||
|
EVT_MENU(wxID_HELP_CONTENTS, wxHtmlHelpFrame::OnAbout)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
Reference in New Issue
Block a user