浏览代码

When saving an edited site or default settings, WinSCP prompted for the master password, even when the site does not have any password to protect

Caused by 0ccd2def.

(cherry picked from commit 384fdf63bb94c7809fc5a170f11025ffcb5dbea0)

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

+ 1 - 1
source/core/SessionData.cpp

@@ -1562,7 +1562,7 @@ bool __fastcall TSessionData::HasAnyPassword()
     HasAnySessionPassword() ||
     !FProxyPassword.IsEmpty() ||
     // will probably be never used
-    FNewPassword.IsEmpty();
+    !FNewPassword.IsEmpty();
 }
 //---------------------------------------------------------------------
 void __fastcall TSessionData::ClearSessionPasswords()