call SetEventObject() for wxHtmlLinkEvents we generate
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -953,6 +953,7 @@ bool wxHtmlWindow::CopySelection(ClipboardType t)
|
|||||||
void wxHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link)
|
void wxHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link)
|
||||||
{
|
{
|
||||||
wxHtmlLinkEvent event(GetId(), link);
|
wxHtmlLinkEvent event(GetId(), link);
|
||||||
|
event.SetEventObject(this);
|
||||||
if (!GetEventHandler()->ProcessEvent(event))
|
if (!GetEventHandler()->ProcessEvent(event))
|
||||||
{
|
{
|
||||||
// the default behaviour is to load the URL in this window
|
// the default behaviour is to load the URL in this window
|
||||||
|
Reference in New Issue
Block a user