mirror of https://github.com/BOINC/boinc.git
MGR: Support following HTTP and HTTPS links. We just launch a browser anyway.
This commit is contained in:
parent
30f0f67b3d
commit
ce77d0623f
|
@ -542,7 +542,6 @@ wxString CNoticeListCtrl::OnGetItem(size_t i) const {
|
|||
strDescription = wxString(np->description.c_str(), wxConvUTF8);
|
||||
eol_to_br(strDescription);
|
||||
localize(strDescription);
|
||||
https_to_http(strDescription);
|
||||
|
||||
dtBuffer.Set((time_t)np->create_time);
|
||||
strCreateTime = dtBuffer.Format();
|
||||
|
|
|
@ -206,7 +206,7 @@ void CViewNotices::OnListRender(wxTimerEvent& WXUNUSED(event)) {
|
|||
|
||||
|
||||
void CViewNotices::OnLinkClicked( NoticeListCtrlEvent& event ) {
|
||||
if (event.GetURL().StartsWith(wxT("http://"))) {
|
||||
if (event.GetURL().StartsWith(wxT("http://")) || event.GetURL().StartsWith(wxT("https://"))) {
|
||||
wxLaunchDefaultBrowser(event.GetURL());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue