mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Leave SQL help action disabled as long as there is no selected connection. Fixes issue #3200.
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user