mirror of https://github.com/BOINC/boinc.git
MGR: Fix a couple of small bugs in selectively hidden list columns.
This commit is contained in:
parent
5efea748a4
commit
775b12ad84
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue