From 7f48304631e7b9004e4810bb98cb03853b974a71 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 26 Jun 2008 12:11:55 +0000 Subject: [PATCH] Rename configuration key from Ascending to ReverseSortOrder for clarity svn path=/workspaces/wxListCtrl/; revision=15480 --- checkin_notes | 2 +- clientgui/BOINCListCtrl.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index b05fb82dda..781131b554 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4936,7 +4936,7 @@ Charlie 25 June 2008 ViewWork.cpp,h Charlie 26 June 2008 - - MGR List View: Complete multiple settings for Tasks tab, implement all + - MGR List View: Complete multiple selections for Tasks tab, implement all features in Projects tab, save and restore sort columns and directions. clientgui/ diff --git a/clientgui/BOINCListCtrl.cpp b/clientgui/BOINCListCtrl.cpp index d37be19556..4fc6107f50 100644 --- a/clientgui/BOINCListCtrl.cpp +++ b/clientgui/BOINCListCtrl.cpp @@ -112,7 +112,7 @@ bool CBOINCListCtrl::OnSaveState(wxConfigBase* pConfig) { // Save sorting column and direction pConfig->SetPath(strBaseConfigLocation); pConfig->Write(wxT("SortColumn"), m_pParentView->m_iSortColumn); - pConfig->Write(wxT("SortAscending"), m_pParentView->m_bReverseSort); + pConfig->Write(wxT("ReverseSortOrder"), m_pParentView->m_bReverseSort); return true; } @@ -165,7 +165,7 @@ bool CBOINCListCtrl::OnRestoreState(wxConfigBase* pConfig) { // Restore sorting column and direction pConfig->SetPath(strBaseConfigLocation); - pConfig->Read(wxT("SortAscending"), &iTempValue,-1); + pConfig->Read(wxT("ReverseSortOrder"), &iTempValue,-1); if (-1 != iTempValue) { m_pParentView->m_bReverseSort = iTempValue != 0 ? true : false; }