mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +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
|
ObjNode.CheckState := csUncheckedNormal
|
||||||
else begin
|
else begin
|
||||||
if (WantedType = lntNone) or (DBObj.NodeType = WantedType) then
|
if (WantedType = lntNone) or (DBObj.NodeType = WantedType) then
|
||||||
ObjNode.CheckState := csCheckedNormal
|
TreeObjects.CheckState[ObjNode] := csCheckedNormal
|
||||||
else
|
else
|
||||||
ObjNode.CheckState := csUncheckedNormal;
|
TreeObjects.CheckState[ObjNode] := csUncheckedNormal;
|
||||||
end;
|
end;
|
||||||
if ObjNode.CheckState = csCheckedNormal then
|
if ObjNode.CheckState = csCheckedNormal then
|
||||||
Inc(CheckedNodes);
|
Inc(CheckedNodes);
|
||||||
|
Reference in New Issue
Block a user