mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 07:55:59 +02:00
fixed not setting TMenu.Items.Caption
git-svn-id: trunk@7780 -
This commit is contained in:
parent
f1bd1cc6c5
commit
a0c1aa4499
@ -884,7 +884,7 @@ procedure TMenuItem.SetCaption(const AValue: string);
|
||||
begin
|
||||
if FCaption = AValue then exit;
|
||||
FCaption := AValue;
|
||||
if HandleAllocated then
|
||||
if HandleAllocated and ((Parent<>nil) or (FMenu=nil)) then
|
||||
TWSMenuItemClass(WidgetSetClass).SetCaption(Self, AValue);
|
||||
OwnerFormDesignerModified(Self);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user