mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 22:40:56 +02:00
lcl: allow ItemChanged event for OwnerData listview
git-svn-id: trunk@22284 -
This commit is contained in:
parent
391e491deb
commit
833166cbd0
@ -224,10 +224,9 @@ begin
|
|||||||
//Check
|
//Check
|
||||||
end;
|
end;
|
||||||
LVN_ITEMCHANGED: begin
|
LVN_ITEMCHANGED: begin
|
||||||
if OwnerData then Exit;
|
|
||||||
Item := Items[nm^.iItem];
|
Item := Items[nm^.iItem];
|
||||||
//DebugLn('TCustomListView.CNNotify Count=',dbgs(Items.Count),' nm^.iItem=',dbgs(nm^.iItem),' destroying=',dbgs(lifDestroying in Item.FFlags));
|
//DebugLn('TCustomListView.CNNotify Count=',dbgs(Items.Count),' nm^.iItem=',dbgs(nm^.iItem),' destroying=',dbgs(lifDestroying in Item.FFlags));
|
||||||
if (lifDestroying in Item.FFlags) then begin
|
if (Item <> nil) and (not OwnerData) and (lifDestroying in Item.FFlags) then begin
|
||||||
if Item=FFocused then
|
if Item=FFocused then
|
||||||
FFocused:=nil;
|
FFocused:=nil;
|
||||||
if Item=FSelected then
|
if Item=FSelected then
|
||||||
|
@ -65,7 +65,7 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
if (AIndex < 0) or (AIndex >= FItems.Count) then
|
if (AIndex >= FItems.Count) then
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := nil;
|
||||||
Exit;
|
Exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user