1
0
Эх сурвалжийг харах

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

Source commit: 942747a056585dcf8f86bafc65f197564cf69956
Martin Prikryl 4 жил өмнө
parent
commit
f50e0dc8d5

+ 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)
   {