X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/657a8a359826e46a7fc458216403f54deca34989..0738b901b17340f09766524b8d9d79e9ed1268e7:/src/common/hyperlnkcmn.cpp?ds=inline diff --git a/src/common/hyperlnkcmn.cpp b/src/common/hyperlnkcmn.cpp index 582147736d..7765e21d8b 100644 --- a/src/common/hyperlnkcmn.cpp +++ b/src/common/hyperlnkcmn.cpp @@ -77,8 +77,12 @@ void wxHyperlinkCtrlBase::SendEvent() wxString url = GetURL(); wxHyperlinkEvent linkEvent(this, GetId(), url); if (!GetEventHandler()->ProcessEvent(linkEvent)) // was the event skipped ? + { if (!wxLaunchDefaultBrowser(url)) + { wxLogWarning(wxT("Could not launch the default browser with url '%s' !"), url.c_str()); + } + } } #endif // wxUSE_HYPERLINKCTRL