IDE: fix disallowing to set a components name to "Owner" in IDE. Issue #40134.

This commit is contained in:
Bart 2023-03-01 12:00:10 +01:00
parent b245ce44a2
commit 0c9fb4315b

View File

@ -11871,7 +11871,7 @@ begin
and (FRenamingComponents.IndexOf(AComponent)>=0) then
exit; // already validated
if SysUtils.CompareText(AComponent.Name,'Owner')=0 then
if SysUtils.CompareText(NewName,'Owner')=0 then
// 'Owner' is used by TReader/TWriter
raise EComponentError.Create(lisOwnerIsAlreadyUsedByTReaderTWriterPleaseChooseAnot);