mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 02:29:26 +02:00
MG: added some component rename checks
git-svn-id: trunk@1424 -
This commit is contained in:
parent
e70cbdf3a2
commit
5c326caa41
@ -3181,6 +3181,8 @@ end;
|
||||
|
||||
procedure TComponentNamePropertyEditor.SetValue(const NewValue: ansistring);
|
||||
begin
|
||||
if (not IsValidIdent(NewValue)) or (NewValue='') then
|
||||
raise Exception.Create('Component name "'+NewValue+'" is not a valid identifier');
|
||||
inherited SetValue(NewValue);
|
||||
PropertyHook.ComponentRenamed(TComponent(GetComponent(0)));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user