瀏覽代碼

Code generation and transfer rule presets use expanded hostname, so check if expanded hostname has any value

Source commit: 942747a056585dcf8f86bafc65f197564cf69956
Martin Prikryl 4 年之前
父節點
當前提交
f50e0dc8d5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      source/forms/Login.cpp

+ 2 - 2
source/forms/Login.cpp

@@ -1215,13 +1215,13 @@ void __fastcall TLoginDialog::ActionListUpdate(TBasicAction * BasicAction,
   {
     TSessionData * Data = GetSessionData();
     // URL without hostname is pointless
-    Action->Enabled = (Data != NULL) && !Data->HostName.IsEmpty() && !FEditing;
+    Action->Enabled = (Data != NULL) && !Data->HostNameExpanded.IsEmpty() && !FEditing;
   }
   else if (Action == CopyParamRuleAction)
   {
     TSessionData * Data = GetSessionData();
     // without hostname it's pointless
-    Action->Enabled = (Data != NULL) && !Data->HostName.IsEmpty();
+    Action->Enabled = (Data != NULL) && !Data->HostNameExpanded.IsEmpty();
   }
   else if (Action == SearchSiteNameStartOnlyAction)
   {