mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 10:39:20 +02:00
Designer: Rename component: fix limitation when renaming the form itself
git-svn-id: trunk@62775 -
This commit is contained in:
parent
5a0a107a61
commit
c0484a52e0
@ -286,13 +286,16 @@ begin
|
||||
ErrorMsg:=lisThereIsAlreadyAComponentWithThisName;
|
||||
exit;
|
||||
end;
|
||||
if SysUtils.CompareText(AName,FLookupRoot.Name)=0 then begin
|
||||
ErrorMsg:=lisTheOwnerHasThisName;
|
||||
exit;
|
||||
end;
|
||||
if SysUtils.CompareText(AName,FLookupRoot.ClassName)=0 then begin
|
||||
ErrorMsg:=lisTheOwnerClassHasThisName;
|
||||
exit;
|
||||
if FLookupRoot<>FNewComponent then
|
||||
begin
|
||||
if SysUtils.CompareText(AName,FLookupRoot.Name)=0 then begin
|
||||
ErrorMsg:=lisTheOwnerHasThisName;
|
||||
exit;
|
||||
end;
|
||||
if SysUtils.CompareText(AName,FLookupRoot.ClassName)=0 then begin
|
||||
ErrorMsg:=lisTheOwnerClassHasThisName;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
if SysUtils.CompareText(AName,GetClassUnitName(FLookupRoot.ClassType))=0 then begin
|
||||
ErrorMsg:=lisTheUnitHasThisName;
|
||||
|
Loading…
Reference in New Issue
Block a user