mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: FTP - Access violation if you try to "Quick connect" when you are already connected (fixes #1664)
This commit is contained in:
parent
3fb10a1a5b
commit
84f1a960b1
1 changed files with 5 additions and 3 deletions
|
|
@ -425,9 +425,11 @@ var
|
|||
Index: Integer;
|
||||
Connection: TConnection;
|
||||
begin
|
||||
Result:= ActiveConnectionList.IndexOf(cQuickConnection) >= 0;
|
||||
if not Result then
|
||||
begin
|
||||
Index:= ActiveConnectionList.IndexOf(cQuickConnection);
|
||||
Result:= (Index >= 0);
|
||||
if Result then
|
||||
FtpSend:= TFTPSendEx(ActiveConnectionList.Objects[Index])
|
||||
else begin
|
||||
Connection := TConnection.Create;
|
||||
Connection.ConnectionName:= cQuickConnection;
|
||||
if ShowFtpConfDlg(Connection) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue