mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Use Tree.CheckState[Node], not Node.CheckState to fix a potential OnCheck event. Fixes issue #2738.
This commit is contained in:
@ -1524,9 +1524,9 @@ begin
|
||||
ObjNode.CheckState := csUncheckedNormal
|
||||
else begin
|
||||
if (WantedType = lntNone) or (DBObj.NodeType = WantedType) then
|
||||
ObjNode.CheckState := csCheckedNormal
|
||||
TreeObjects.CheckState[ObjNode] := csCheckedNormal
|
||||
else
|
||||
ObjNode.CheckState := csUncheckedNormal;
|
||||
TreeObjects.CheckState[ObjNode] := csUncheckedNormal;
|
||||
end;
|
||||
if ObjNode.CheckState = csCheckedNormal then
|
||||
Inc(CheckedNodes);
|
||||
|
Reference in New Issue
Block a user