Jelajahi Sumber

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 tahun lalu
induk
melakukan
3b51d9b70e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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()