LCL: Update TreeView.Items.FSelection when deleting selected nodes. Patch from Anton, issue #19777

git-svn-id: trunk@31773 -
This commit is contained in:
juha 2011-07-20 17:24:51 +00:00
parent 92659628f1
commit 5dbd4a37fd

View File

@ -282,6 +282,9 @@ begin
{$ENDIF}
Include(FStates,nsDeleting);
Selected := False;
MultiSelected := False;
// we must trigger TCustomTreeView.OnDeletion event before
// unbinding.See issue #17832.
if Assigned(Owner) and Assigned(Owner.Owner) then