Browse Source

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

Source commit: be61be50fc117647338c3c48a1f98773f686180a
Martin Prikryl 8 years ago
parent
commit
3c9a9861c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/core/Script.cpp

+ 1 - 1
source/core/Script.cpp

@@ -2583,7 +2583,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();