Avoid EAccessViolation when pressing F5 too quickly. See https://www.heidisql.com/forum.php?t=26327

This commit is contained in:
Ansgar Becker
2019-01-13 13:38:55 +01:00
parent 92c8eb5bc8
commit 8d27e1d4ec

View File

@@ -6440,7 +6440,7 @@ begin
menuTreeCollapseAll.Enabled := False;
menuTreeOptions.Enabled := False;
end;
if ActiveConnection.Parameters.IsMySQL then begin
if (ActiveConnection <> nil) and (ActiveConnection.Parameters.IsMySQL) then begin
Version := ActiveConnection.ServerVersionInt;
actCreateView.Enabled := actCreateView.Enabled and (Version >= 50001);
actCreateRoutine.Enabled := actCreateRoutine.Enabled and (Version >= 50003);