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.

(cherry picked from commit 384fdf63bb94c7809fc5a170f11025ffcb5dbea0)

Source commit: 31322bd67691c220d0bda4ab5d6234a949374e74
Martin Prikryl 6 vuotta sitten
vanhempi
sitoutus
3b51d9b70e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()