LCL: fix a bug in ListView introduced @0e0ef8c where the checked state was not restored correctly after sorting.

This commit is contained in:
rich2014 2025-03-04 22:01:35 +08:00
parent d73ca45293
commit 25e632015e

View File

@ -1144,6 +1144,7 @@ begin
TWSCustomListViewClass(WidgetSetClass).ItemSetState(Self,
AItemIndex, Items[AItemIndex], lisSelected, True);
end;
end;
if FSavedChecked <> nil then
begin
@ -1156,8 +1157,6 @@ begin
end;
FSavedChecked.Free;
end;
end;
finally
FreeThenNil(FSavedSelection);
Exclude(FFlags, lffItemsSorting);