MGR: Fix a couple of small bugs in selectively hidden list columns.

This commit is contained in:
Charlie Fenton 2014-12-11 06:47:51 -08:00
parent 5efea748a4
commit 775b12ad84
2 changed files with 5 additions and 2 deletions

View File

@ -332,6 +332,9 @@ void CBOINCListCtrl::SetListColumnOrder(wxArrayString& orderArray) {
pView->m_iSortColumnID = pView->m_iColumnIndexToColumnID[0];
pView->m_bReverseSort = false;
pView->SetSortColumn(0);
} else {
// Redraw the sort arrow, etc.
pView->SetSortColumn(sortColumnIndex);
}
}

View File

@ -226,7 +226,7 @@ static void wxRectToNSRect(wxRect &wxr, NSRect &nsr) {
if (isHeader) {
int numCols = pList->GetColumnCount();
if ((!isEventLog) && (BOINCView != nil)) {
if (col == BOINCView->m_iSortColumn) {
if (col == BOINCView->m_iColumnIDToColumnIndex[BOINCView->m_iSortColumnID]) {
isCurrentSortCol = YES;
}
}
@ -327,7 +327,7 @@ static void wxRectToNSRect(wxRect &wxr, NSRect &nsr) {
return NSAccessibilitySortButtonRole;
} else if ([attribute isEqualToString:NSAccessibilitySortDirectionAttribute]) {
if (col == BOINCView->m_iSortColumn) {
if (col == BOINCView->m_iColumnIDToColumnIndex[BOINCView->m_iSortColumnID]) {
return BOINCView->m_bReverseSort ?
NSAccessibilityDescendingSortDirectionValue : NSAccessibilityAscendingSortDirectionValue;
} else {