Permalink
Browse files

Avoid EAccessViolation when pressing F5 too quickly. See https://www.…

  • Loading branch information...
ansgarbecker committed Jan 13, 2019
1 parent 92c8eb5 commit 8d27e1d4ec53a0888491dd394139e484e2fcbc8a
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/main.pas
@@ -6440,7 +6440,7 @@ procedure TMainForm.popupDBPopup(Sender: TObject);
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);

0 comments on commit 8d27e1d

Please sign in to comment.