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