mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 17:49:25 +02:00
LCL: TCustomListView.OnDeletion must trigger even when destroying component since we might have assigned objects in data property of item.issue #25431
git-svn-id: trunk@44404 -
This commit is contained in:
parent
753f00445b
commit
5047d8a8df
@ -637,7 +637,6 @@ begin
|
||||
//DebugLn('TCustomListView.ItemDeleted ',dbgs(AItem),' FSelected=',dbgs(FSelected));
|
||||
if FSelected = AItem then InvalidateSelected;
|
||||
if FFocused = AItem then FFocused := nil;
|
||||
if csDestroying in Componentstate then Exit;
|
||||
DoDeletion(AItem);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user