Skip to content
Permalink
Browse files

Revert a part of 1c76c2e, which disabled the port input for MS SQL / …

…TCP connections if the host is a named instance. According to #714 you can still use the port for named instances. Closes #714.
  • Loading branch information...
ansgarbecker committed Jul 14, 2019
1 parent e4423c7 commit df6a566ee6d157b76d1ea8a79fba8160c74fc1e3
Showing with 0 additions and 2 deletions.
  1. +0 −2 source/connections.pas
@@ -1226,8 +1226,6 @@ procedure Tconnform.ValidateControls;
lblPassword.Enabled := lblUsername.Enabled;
editPassword.Enabled := lblUsername.Enabled;
lblPort.Enabled := Params.NetType in [ntMySQL_TCPIP, ntMySQL_SSHtunnel, ntMSSQL_TCPIP, ntPgSQL_TCPIP, ntPgSQL_SSHtunnel];
if (Params.NetType = ntMSSQL_TCPIP) and (Pos('\', editHost.Text) > 0) then
lblPort.Enabled := False; // Named instance without port
editPort.Enabled := lblPort.Enabled;
updownPort.Enabled := lblPort.Enabled;
comboLibrary.Enabled := Params.NetTypeGroup in [ngMySQL];

0 comments on commit df6a566

Please sign in to comment.
You can’t perform that action at this time.