Преглед изворни кода

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

Source commit: be61be50fc117647338c3c48a1f98773f686180a
Martin Prikryl пре 8 година
родитељ
комит
3c9a9861c2
1 измењених фајлова са 1 додато и 1 уклоњено
  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();