From ce77d0623f12b22d1ea7dd8e45461026aeabfd57 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 18 Jul 2013 15:31:52 -0400 Subject: [PATCH] MGR: Support following HTTP and HTTPS links. We just launch a browser anyway. --- clientgui/NoticeListCtrl.cpp | 1 - clientgui/ViewNotices.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/clientgui/NoticeListCtrl.cpp b/clientgui/NoticeListCtrl.cpp index 6dfa871f3b..8f304d2c29 100644 --- a/clientgui/NoticeListCtrl.cpp +++ b/clientgui/NoticeListCtrl.cpp @@ -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(); diff --git a/clientgui/ViewNotices.cpp b/clientgui/ViewNotices.cpp index 6f55987808..cb80f39d0d 100644 --- a/clientgui/ViewNotices.cpp +++ b/clientgui/ViewNotices.cpp @@ -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()); } }