X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b05206c98b0d11d98d324df1833dacd08f385913..245f35816d761212279e8cf223475efb7a367553:/src/html/helpfrm.cpp diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 347f8d1d12..5191e19ecd 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -113,7 +113,9 @@ class wxHtmlHelpHtmlWindow : public wxHtmlWindow virtual void OnLinkClicked(const wxHtmlLinkInfo& link) { wxHtmlWindow::OnLinkClicked(link); - m_Frame->NotifyPageChanged(); + const wxMouseEvent *e = link.GetEvent(); + if (e == NULL || e->LeftUp()) + m_Frame->NotifyPageChanged(); } private: @@ -1522,7 +1524,7 @@ void wxHtmlHelpFrame::OnCloseWindow(wxCloseEvent& evt) } #ifdef __WXMAC__ -void wxHtmlHelpFrame::OnQuit(wxCommandEvent& event) +void wxHtmlHelpFrame::OnClose(wxCommandEvent& event) { Close(TRUE); } @@ -1550,7 +1552,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