From 9a8efd7d1c80eb509beb1f08b3d23a9fbc3601b8 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Sat, 24 Jul 2010 01:23:36 +0000 Subject: [PATCH] MGR: remove my code for extracting host name from host.domain_name; it is not needed svn path=/trunk/boinc/; revision=22056 --- checkin_notes | 8 ++++++++ clientgui/MainDocument.cpp | 8 ++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/checkin_notes b/checkin_notes index 75610a0d39..1b68ea0180 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5603,3 +5603,11 @@ Charlie 23 Jul 2010 clientgui/ BOINCBaseFrame.cpp BOINCGUIApp.cpp + +Charlie 23 Jul 2010 + - MGR: remove my code for extracting host name from host.domain_name; + it is not needed. + + clientgui/ + MainDocument.cpp + diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index 3d2cf3887c..59efc19b90 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -1826,12 +1826,10 @@ void CMainDocument::SaveUnreadNoticeInfo() { wxString strBaseConfigLocation = wxString(wxT("/Notices/")); wxConfigBase* pConfig = wxConfigBase::Get(FALSE); wxString strDomainName = wxString(host.domain_name, wxConvUTF8, strlen(host.domain_name)); - // We want only the unique and invariant part (host name) of the domain path - wxString strHostName = strDomainName.AfterLast(wxFileName::GetPathSeparator()); wxString strArrivalTime = wxEmptyString; static double dLastSavedArrivalTime = 0.0; - pConfig->SetPath(strBaseConfigLocation + strHostName); + pConfig->SetPath(strBaseConfigLocation + strDomainName); if (dLastSavedArrivalTime != m_dLastReadNoticeArrivalTime) { pConfig->Write(wxT("LastReadNoticeTime"), m_dLastReadNoticeArrivalTime); @@ -1844,12 +1842,10 @@ void CMainDocument::RestoreUnreadNoticeInfo() { wxString strBaseConfigLocation = wxString(wxT("/Notices/")); wxConfigBase* pConfig = wxConfigBase::Get(FALSE); wxString strDomainName = wxString(host.domain_name, wxConvUTF8, strlen(host.domain_name)); - // We want only the unique and invariant part (host name) of the domain path - wxString strHostName = strDomainName.AfterLast(wxFileName::GetPathSeparator()); double dLastReadNoticeTime; int i, n = (int)notices.notices.size(); - pConfig->SetPath(strBaseConfigLocation + strHostName); + pConfig->SetPath(strBaseConfigLocation + strDomainName); if (pConfig->Read(wxT("LastReadNoticeTime"), &dLastReadNoticeTime)) { for (i=0; i