Disable SortItems support for now, it is causing a crash on the wxPython side and we get the column click event too late to affect the initial sort.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2006-11-13 00:24:19 +00:00
parent 8287c33f41
commit 2201013094

View File

@@ -2712,8 +2712,13 @@ Boolean wxMacDataBrowserListCtrlControl::CompareItems(DataBrowserItemID itemOneI
long item1 = GetLineFromItem(item);
long item2 = GetLineFromItem(otherItem);
if (func != NULL && item->HasColumnInfo(colId) && otherItem->HasColumnInfo(colId))
return func(item1, item2, list->GetCompareFuncData()) >= 0;
// FIXME: This code causes a crash in wxPython for some reason
// and moreover, further testing shows that the column click event
// is only sent to the list ctrl after the native control has finished
// sorting items anyway. So just disable this for now.
//if (func != NULL && item->HasColumnInfo(colId) && otherItem->HasColumnInfo(colId))
// return func(item1, item2, list->GetCompareFuncData()) >= 0;
if (item->HasColumnInfo(colId))
itemText = item->GetColumnInfo(colId)->GetText();