diff --git a/lcl/include/treeview.inc b/lcl/include/treeview.inc index adf27801ef..b2f02439f4 100644 --- a/lcl/include/treeview.inc +++ b/lcl/include/treeview.inc @@ -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