Rename configuration key from Ascending to ReverseSortOrder for clarity

svn path=/workspaces/wxListCtrl/; revision=15480
This commit is contained in:
Charlie Fenton 2008-06-26 12:11:55 +00:00
parent b3a123e841
commit 7f48304631
2 changed files with 3 additions and 3 deletions

View File

@ -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/

View File

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