Browse Source

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

(cherry picked from commit f50e0dc8d522f5d3f87585fffaa24e7c86c8d3fe)

Source commit: 5a8f39015a34ec0460c87b33d8848e4c92b7af59
Martin Prikryl 4 years ago
parent
commit
31b8a5e107
1 changed files with 2 additions and 2 deletions
  1. 2 2
      source/forms/Login.cpp

+ 2 - 2
source/forms/Login.cpp

@@ -1222,13 +1222,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)
   {