mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 22:59:27 +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
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user