diff --git a/source/main.dfm b/source/main.dfm index fdf440c0..200383b6 100644 --- a/source/main.dfm +++ b/source/main.dfm @@ -2166,6 +2166,7 @@ object MainForm: TMainForm object actSQLhelp: TAction Category = 'Tools' Caption = 'SQL help' + Enabled = False Hint = 'SQL help browser' ImageIndex = 31 ShortCut = 112 diff --git a/source/main.pas b/source/main.pas index 4b2cc0b4..2b446b25 100644 --- a/source/main.pas +++ b/source/main.pas @@ -7340,6 +7340,7 @@ begin tabDatabase.TabVisible := (FActiveDbObj <> nil) and (FActiveDbObj.NodeType <> lntNone); tabEditor.TabVisible := (FActiveDbObj <> nil) and (FActiveDbObj.NodeType in [lntTable..lntEvent]); tabData.TabVisible := (FActiveDbObj <> nil) and (FActiveDbObj.NodeType in [lntTable, lntView]); + actSQLhelp.Enabled := Assigned(Node); end; // Store click history item