mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 08:29:32 +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;
|
||||
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.WSUpdateAllowed;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user