Selaa lähdekoodia

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 vuotta sitten
vanhempi
sitoutus
384fdf63bb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()