FIX: FTP - Rename connection via properties dialog

This commit is contained in:
Alexander Koblov 2018-05-13 09:36:50 +00:00
commit 31ef7eb594

View file

@ -503,13 +503,13 @@ begin
begin
if Connection.MasterPassword then
begin
if CryptFunc(FS_CRYPT_MOVE_PASSWORD, Connection.ConnectionName, ConnectionName) = FS_FILE_OK then
ConnectionList[I]:= ConnectionName
else begin
if CryptFunc(FS_CRYPT_MOVE_PASSWORD, Connection.ConnectionName, ConnectionName) <> FS_FILE_OK then
begin
gStartupInfo.MessageBox('Cannot save connection!', 'FTP', MB_OK or MB_ICONERROR);
Exit(False);
end;
end;
ConnectionList[I]:= ConnectionName
end;
if PasswordChanged then
begin