mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Support grouping by tree node type in "check xyz" menu items on table tools dialog. See https://www.heidisql.com/forum.php?t=23351
This commit is contained in:
@ -1803,6 +1803,7 @@ begin
|
||||
case TreeObjects.GetNodeLevel(TreeObjects.FocusedNode) of
|
||||
1: DBNode := TreeObjects.FocusedNode;
|
||||
2: DBNode := TreeObjects.FocusedNode.Parent;
|
||||
3: DBNode := TreeObjects.FocusedNode.Parent.Parent;
|
||||
else raise Exception.Create(_('Unhandled tree level'));
|
||||
end;
|
||||
ObjNode := TreeObjects.GetFirstChild(DBNode);
|
||||
@ -1812,7 +1813,7 @@ begin
|
||||
if CheckNone then
|
||||
TreeObjects.CheckState[ObjNode] := csUncheckedNormal
|
||||
else begin
|
||||
if (WantedType = lntNone) or (DBObj.NodeType = WantedType) then
|
||||
if (WantedType = lntNone) or (DBObj.NodeType = WantedType) or (DBObj.GroupType = WantedType) then
|
||||
TreeObjects.CheckState[ObjNode] := csCheckedNormal
|
||||
else
|
||||
TreeObjects.CheckState[ObjNode] := csUncheckedNormal;
|
||||
|
Reference in New Issue
Block a user