Browse Source

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.

Source commit: d6f120c5c92a4a16310a746efda75dbe40dfdcdf
Martin Prikryl 6 năm trước cách đây
mục cha
commit
384fdf63bb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      source/core/SessionData.cpp

+ 1 - 1
source/core/SessionData.cpp

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