Explorar o código

* DisplayName should not set name

git-svn-id: trunk@25619 -
michael %!s(int64=11) %!d(string=hai) anos
pai
achega
1f0c70508f
Modificáronse 1 ficheiros con 8 adicións e 4 borrados
  1. 8 4
      packages/fcl-web/src/base/fphttp.pp

+ 8 - 4
packages/fcl-web/src/base/fphttp.pp

@@ -435,16 +435,20 @@ end;
 
 function TCustomWebAction.GetDisplayName: String;
 begin
-  If (FName='') then
-    FName:=ClassName+IntToStr(self.Index);
   Result:=FName;
+  If (Result='') then
+    begin
+    Result:=ClassName+IntToStr(self.Index);
+    if Result[1]='T' then
+      Delete(Result,1,1)
+    end;
 end;
 
 Function TCustomWebAction.GetNamePath : String;
 begin
- If (FName='') then
-    FName:=ClassName+IntToStr(self.Index);
   Result:=FName;
+  If (Result='') then
+    FName:=ClassName+IntToStr(self.Index);
 end;
 
 procedure TCustomWebAction.SetDisplayName(const AValue: String);