mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Avoid EAccessViolation when pressing F5 too quickly. See https://www.heidisql.com/forum.php?t=26327
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user