mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 13:30:37 +02:00
IDE: fix disallowing to set a components name to "Owner" in IDE. Issue #40134.
This commit is contained in:
parent
b245ce44a2
commit
0c9fb4315b
@ -11871,7 +11871,7 @@ begin
|
|||||||
and (FRenamingComponents.IndexOf(AComponent)>=0) then
|
and (FRenamingComponents.IndexOf(AComponent)>=0) then
|
||||||
exit; // already validated
|
exit; // already validated
|
||||||
|
|
||||||
if SysUtils.CompareText(AComponent.Name,'Owner')=0 then
|
if SysUtils.CompareText(NewName,'Owner')=0 then
|
||||||
// 'Owner' is used by TReader/TWriter
|
// 'Owner' is used by TReader/TWriter
|
||||||
raise EComponentError.Create(lisOwnerIsAlreadyUsedByTReaderTWriterPleaseChooseAnot);
|
raise EComponentError.Create(lisOwnerIsAlreadyUsedByTReaderTWriterPleaseChooseAnot);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user