Browse Source

Bug fix: State of "Allow agent forwarding" checkbox was not updated when toggling "Attempt authentication using Pageant"

Source commit: 4e1600c83120bdd000d2acfec2966f2f218402bd
Martin Prikryl 6 years ago
parent
commit
b02f24d393
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/forms/SiteAdvanced.cpp

+ 1 - 1
source/forms/SiteAdvanced.cpp

@@ -829,7 +829,7 @@ void __fastcall TSiteAdvancedDialog::UpdateControls()
       ((AuthTISCheck->Enabled && AuthTISCheck->Checked) ||
        (AuthKICheck->Enabled && AuthKICheck->Checked)));
     EnableControl(AuthenticationParamsGroup, AuthenticationGroup->Enabled);
-    EnableControl(AgentFwdCheck, AuthenticationParamsGroup->Enabled && FSessionData->TryAgent);
+    EnableControl(AgentFwdCheck, AuthenticationParamsGroup->Enabled && TryAgentCheck->Checked);
     EnableControl(PrivateKeyViewButton, PrivateKeyEdit3->Enabled && !PrivateKeyEdit3->Text.IsEmpty());
     EnableControl(AuthGSSAPICheck3,
       AuthenticationGroup->Enabled && (GetSshProt() == ssh2only));