mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:59:06 +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;
|
ErrorMsg:=lisThereIsAlreadyAComponentWithThisName;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
if SysUtils.CompareText(AName,FLookupRoot.Name)=0 then begin
|
if FLookupRoot<>FNewComponent then
|
||||||
ErrorMsg:=lisTheOwnerHasThisName;
|
begin
|
||||||
exit;
|
if SysUtils.CompareText(AName,FLookupRoot.Name)=0 then begin
|
||||||
end;
|
ErrorMsg:=lisTheOwnerHasThisName;
|
||||||
if SysUtils.CompareText(AName,FLookupRoot.ClassName)=0 then begin
|
exit;
|
||||||
ErrorMsg:=lisTheOwnerClassHasThisName;
|
end;
|
||||||
exit;
|
if SysUtils.CompareText(AName,FLookupRoot.ClassName)=0 then begin
|
||||||
|
ErrorMsg:=lisTheOwnerClassHasThisName;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
if SysUtils.CompareText(AName,GetClassUnitName(FLookupRoot.ClassType))=0 then begin
|
if SysUtils.CompareText(AName,GetClassUnitName(FLookupRoot.ClassType))=0 then begin
|
||||||
ErrorMsg:=lisTheUnitHasThisName;
|
ErrorMsg:=lisTheUnitHasThisName;
|
||||||
|
Loading…
Reference in New Issue
Block a user