diff --git a/clientgui/BOINCListCtrl.cpp b/clientgui/BOINCListCtrl.cpp index f739ad3e70..f38277ef3f 100644 --- a/clientgui/BOINCListCtrl.cpp +++ b/clientgui/BOINCListCtrl.cpp @@ -377,7 +377,8 @@ void CBOINCListCtrl::SetListColumnOrder(wxArrayString& orderArray) { } #ifdef wxHAS_LISTCTRL_COLUMN_ORDER - if ((shownColCount > 0) && (shownColCount <= stdCount) && (colCount > 0)) { + colCount = GetColumnCount(); + if ((shownColCount > 0) && (shownColCount <= stdCount) && (colCount == shownColCount)) { SetColumnsOrder(aOrder); } #endif