mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:55:58 +02:00
LCL: fix a bug in ListView introduced @0e0ef8c where the checked state was not restored correctly after sorting.
This commit is contained in:
parent
d73ca45293
commit
25e632015e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user