mirror of https://github.com/BOINC/boinc.git
Rename configuration key from Ascending to ReverseSortOrder for clarity
svn path=/workspaces/wxListCtrl/; revision=15480
This commit is contained in:
parent
b3a123e841
commit
7f48304631
|
@ -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/
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue