Ver Fonte

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 há 6 anos atrás
pai
commit
384fdf63bb
1 ficheiros alterados com 1 adições e 1 exclusões
  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()