File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -349,11 +349,12 @@ void CBOINCListCtrl::SetListColumnOrder(wxArrayString& orderArray) {
349
349
CBOINCBaseView* pView = (CBOINCBaseView*)GetParent ();
350
350
wxASSERT (wxDynamicCast (pView, CBOINCBaseView));
351
351
352
+ // Manager will crash if the scroll bar is not at the left-most position on the
353
+ // current view if columns are modified.
354
+ //
355
+ pView->Freeze ();
352
356
pView->m_iColumnIndexToColumnID .Clear ();
353
- for (i=colCount-1 ; i>=0 ; --i) {
354
- DeleteColumn (i);
355
- }
356
-
357
+ DeleteAllColumns ();
357
358
stdCount = pView->m_aStdColNameOrder ->GetCount ();
358
359
359
360
pView->m_iColumnIDToColumnIndex .Clear ();
@@ -412,6 +413,7 @@ void CBOINCListCtrl::SetListColumnOrder(wxArrayString& orderArray) {
412
413
SetColumnsOrder (aOrder);
413
414
}
414
415
#endif
416
+ pView->Thaw ();
415
417
}
416
418
417
419
You can’t perform that action at this time.
0 commit comments