mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix faulty IF construct in previous commit: menuEditVariable always displayed the STR_NOTSUPPORTED hint.
This commit is contained in:
@@ -4427,10 +4427,10 @@ end;
|
||||
procedure TMDIChild.popupHostPopup(Sender: TObject);
|
||||
begin
|
||||
Kill1.Enabled := (PageControlHost.ActivePage = tabProcessList) and Assigned(ListProcesses.FocusedNode);
|
||||
menuEditVariable.Enabled := (mysql_version >= 40003)
|
||||
and (PageControlHost.ActivePage = tabVariables)
|
||||
and Assigned(ListVariables.FocusedNode);
|
||||
if not menuEditVariable.Enabled then
|
||||
menuEditVariable.Enabled := False;
|
||||
if mysql_version >= 40003 then
|
||||
menuEditVariable.Enabled := (PageControlHost.ActivePage = tabVariables) and Assigned(ListVariables.FocusedNode)
|
||||
else
|
||||
menuEditVariable.Hint := STR_NOTSUPPORTED;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user