浏览代码

Bug fix: SFTP only options were shown for SCP sites on Advanced Site Settings dialog

Source commit: 566f1012e648b05ee1cc7ccb752246161fede9cc
Martin Prikryl 6 年之前
父节点
当前提交
9e338c4b9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/core/SessionData.cpp

+ 1 - 1
source/core/SessionData.cpp

@@ -568,7 +568,7 @@ bool __fastcall TSessionData::IsSameDecrypted(const TSessionData * Default)
 //---------------------------------------------------------------------
 //---------------------------------------------------------------------
 TFSProtocol NormalizeFSProtocol(TFSProtocol FSProtocol)
 TFSProtocol NormalizeFSProtocol(TFSProtocol FSProtocol)
 {
 {
-  if ((FSProtocol == fsSCPonly) || (FSProtocol == fsSFTPonly))
+  if (FSProtocol == fsSFTPonly)
   {
   {
     FSProtocol = fsSFTP;
     FSProtocol = fsSFTP;
   }
   }