From 4aa31786746fc9858c34bbfc67867fabbf9e8c1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 18 Jan 2003 00:03:59 +0000 Subject: [PATCH] why the heck should something that reacts on wxID_CLOSE be called OnQuit? git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/html/helpfrm.h | 2 +- src/html/helpfrm.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/html/helpfrm.h b/include/wx/html/helpfrm.h index 2d8c439e13..b2b0432d8e 100644 --- a/include/wx/html/helpfrm.h +++ b/include/wx/html/helpfrm.h @@ -169,7 +169,7 @@ protected: void OnActivate(wxActivateEvent& event); #ifdef __WXMAC__ - void OnQuit(wxCommandEvent& event); + void OnClose(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); #endif diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 347f8d1d12..d01ec35ffb 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -1522,7 +1522,7 @@ void wxHtmlHelpFrame::OnCloseWindow(wxCloseEvent& evt) } #ifdef __WXMAC__ -void wxHtmlHelpFrame::OnQuit(wxCommandEvent& event) +void wxHtmlHelpFrame::OnClose(wxCommandEvent& event) { Close(TRUE); } @@ -1550,7 +1550,7 @@ BEGIN_EVENT_TABLE(wxHtmlHelpFrame, wxFrame) EVT_COMBOBOX(wxID_HTML_BOOKMARKSLIST, wxHtmlHelpFrame::OnBookmarksSel) EVT_CLOSE(wxHtmlHelpFrame::OnCloseWindow) #ifdef __WXMAC__ - EVT_MENU(wxID_CLOSE, wxHtmlHelpFrame::OnQuit) + EVT_MENU(wxID_CLOSE, wxHtmlHelpFrame::OnClose) EVT_MENU(wxID_ABOUT, wxHtmlHelpFrame::OnAbout) #endif -- 2.45.2