Jelajahi Sumber

Bug fix: Scripting open command without arguments issued irrelevant warning about use of stored site

(cherry picked from commit 3c9a9861c2ee0f4f2651b48ffb8784a0d0f645e3)

Source commit: 3a340a8279a2f6049749cca00374e7bc13730a21
Martin Prikryl 8 tahun lalu
induk
melakukan
83604e9e9f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      source/core/Script.cpp

+ 1 - 1
source/core/Script.cpp

@@ -2572,7 +2572,7 @@ void __fastcall TManagementScript::Connect(const UnicodeString Session,
         TScriptCommands::CheckParams(Options, false);
       }
 
-      if (!Data->Name.IsEmpty() && (Batch != TScript::BatchOff))
+      if (!Session.IsEmpty() && !Data->Name.IsEmpty() && (Batch != TScript::BatchOff))
       {
         std::unique_ptr<TSessionData> DataWithFingerprint(Data->Clone());
         DataWithFingerprint->LookupLastFingerprint();