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:
zeljko 2014-03-11 07:59:11 +00:00
parent 753f00445b
commit 5047d8a8df

View File

@ -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;