mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 03:49:41 +02:00
LCL: TTreeView: clear cache when adding node
git-svn-id: trunk@41373 -
This commit is contained in:
parent
26cd305782
commit
9d7979342e
@ -1354,10 +1354,13 @@ begin
|
||||
DbgOut(' ANode.Text=',ANode.Text);
|
||||
DebugLn('');
|
||||
{$ENDIF}
|
||||
if TreeView<>nil then TreeView.BeginUpdate;
|
||||
if TreeView<>nil then
|
||||
TreeView.BeginUpdate;
|
||||
try
|
||||
WasSelected:=Selected;
|
||||
Unbind;
|
||||
if Owner<>nil then
|
||||
Owner.ClearCache;
|
||||
Include(FStates,nsBound);
|
||||
// set parent
|
||||
if AddMode in [taAdd, taAddFirst] then
|
||||
|
Loading…
Reference in New Issue
Block a user