Procházet zdrojové kódy

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 před 6 roky
rodič
revize
3b51d9b70e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()