Browse Source

Bug fix: Failure when duplicating a not-yet-connected session

Source commit: d33b4c450f3166e782d61c00ac395b3033a00d96
Martin Prikryl 4 years ago
parent
commit
594219ee51
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/forms/CustomScpExplorer.cpp

+ 1 - 1
source/forms/CustomScpExplorer.cpp

@@ -6132,7 +6132,7 @@ TSessionData * __fastcall TCustomScpExplorerForm::CloneCurrentSessionData()
   SessionData->Assign(ManagedSession->SessionData);
   UpdateSessionData(SessionData.get());
   DebugAssert(SessionData->IsLocalBrowser == IsLocalBrowserMode());
-  if (!IsLocalBrowserMode())
+  if (IsActiveTerminal(ManagedSession))
   {
     ManagedSession->UpdateSessionCredentials(SessionData.get());
   }