mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 21:59:18 +02:00
LCL: TCustomListView: allow programatically selection of items when OwnerData. issue #18202
git-svn-id: trunk@35243 -
This commit is contained in:
parent
c63e24b53b
commit
90c91e2666
@ -487,7 +487,10 @@ end;
|
|||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
function TListItem.WSUpdateAllowed: Boolean;
|
function TListItem.WSUpdateAllowed: Boolean;
|
||||||
begin
|
begin
|
||||||
Result := (FFlags * [lifDestroying, lifCreated] = [lifCreated])
|
Result :=
|
||||||
|
( (FFlags * [lifDestroying, lifCreated] = [lifCreated]) or
|
||||||
|
((FFlags = []) and (FOwner <> nil) and (FOwner.FOwner <> nil) and
|
||||||
|
(FOwner.FOwner.OwnerData)) )
|
||||||
and (FOwner <> nil)
|
and (FOwner <> nil)
|
||||||
and FOwner.WSUpdateAllowed;
|
and FOwner.WSUpdateAllowed;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user