mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 18:20:42 +02:00
IdeIntf: Reduce debug msgs in TPropertyEditorHook. Rename a variable.
git-svn-id: trunk@51417 -
This commit is contained in:
parent
cf3a735d93
commit
468a5a31d3
@ -5757,7 +5757,7 @@ end;
|
||||
function TPropertyEditorHook.GetComponentName(AComponent: TComponent): String;
|
||||
var
|
||||
i: Integer;
|
||||
CompName, ParentName: String;
|
||||
CompName, OwnerName: String;
|
||||
Handler: TPropHookGetComponentName;
|
||||
begin
|
||||
Result := '';
|
||||
@ -5773,17 +5773,17 @@ begin
|
||||
begin
|
||||
CompName := AComponent.Name;
|
||||
if (AComponent.Owner<>LookupRoot) and (AComponent.Owner<>nil) then
|
||||
ParentName := AComponent.Owner.Name;
|
||||
if CompName='' then
|
||||
OwnerName := AComponent.Owner.Name;
|
||||
{ if CompName='' then
|
||||
DebugLn('TPropertyEditorHook.GetComponentName: AComponent.Name is empty, '+
|
||||
'AComponent.Owner.Name="' + ParentName+'".');
|
||||
if ParentName='' then
|
||||
'AComponent.Owner.Name="' + OwnerName+'".');
|
||||
if OwnerName='' then
|
||||
DebugLn('TPropertyEditorHook.GetComponentName: AComponent.Owner.Name is empty.');
|
||||
|
||||
}
|
||||
Result := CompName;
|
||||
if ParentName<>'' then
|
||||
if OwnerName<>'' then
|
||||
begin
|
||||
Result := ParentName;
|
||||
Result := OwnerName;
|
||||
if CompName<>'' then
|
||||
Result := Result+'.'+CompName;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user