mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-05 17:16:09 +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,
|
TWSCustomListViewClass(WidgetSetClass).ItemSetState(Self,
|
||||||
AItemIndex, Items[AItemIndex], lisSelected, True);
|
AItemIndex, Items[AItemIndex], lisSelected, True);
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
if FSavedChecked <> nil then
|
if FSavedChecked <> nil then
|
||||||
begin
|
begin
|
||||||
@ -1156,8 +1157,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
FSavedChecked.Free;
|
FSavedChecked.Free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end;
|
|
||||||
finally
|
finally
|
||||||
FreeThenNil(FSavedSelection);
|
FreeThenNil(FSavedSelection);
|
||||||
Exclude(FFlags, lffItemsSorting);
|
Exclude(FFlags, lffItemsSorting);
|
||||||
|
Loading…
Reference in New Issue
Block a user