MGR: Support following HTTP and HTTPS links. We just launch a browser anyway.

This commit is contained in:
Rom Walton 2013-07-18 15:31:52 -04:00
parent 30f0f67b3d
commit ce77d0623f
2 changed files with 1 additions and 2 deletions

View File

@ -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();

View File

@ -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());
}
}