Skip to content

Commit 57905b0

Browse files
committed
fix: remove column nodes from tree in table tools dialog
Refs #2563 and #2069
1 parent bb5e724 commit 57905b0

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

source/main.pas

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9911,10 +9911,17 @@ procedure TMainForm.DBtreeInitNode(Sender: TBaseVirtualTree; ParentNode, Node:
99119911
Columns: TTableColumnList;
99129912

99139913
function TreeShowColumns: Boolean;
9914+
var f: TWinControl;
99149915
begin
9915-
Result := Item.NodeType = lntTable;
9916-
if Sender = DBtree then // optional in dbtree
9917-
Result := actTreeShowColumns.Checked;
9916+
Result := False;
9917+
if Item.NodeType = lntTable then begin
9918+
if Sender = DBtree then // optional in dbtree
9919+
Result := actTreeShowColumns.Checked
9920+
else begin
9921+
f := GetParentFormOrFrame(Sender);
9922+
Result := Assigned(f) and (f is TfrmSelectDBObject);
9923+
end;
9924+
end;
99189925
end;
99199926

99209927
begin

0 commit comments

Comments
 (0)