mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 06:08:17 +02:00
lcl: don't check for TMenuItem.Owner during streaming to be able to write TMenuItem with children to custom streams by patch of Anton Kavalenka (issue #0018106)
git-svn-id: trunk@28560 -
This commit is contained in:
parent
74e9ccac95
commit
70fdb2d0ee
@ -297,11 +297,10 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TMenu.GetChildren(Proc: TGetChildProc; Root: TComponent);
|
||||
var
|
||||
i : integer;
|
||||
i: integer;
|
||||
begin
|
||||
for i := 0 to FItems.Count - 1 do
|
||||
if FItems[i].Owner = Root
|
||||
then Proc(TComponent (FItems [i]));
|
||||
for i := 0 to FItems.Count - 1 do
|
||||
Proc(TComponent(FItems[i]));
|
||||
end;
|
||||
|
||||
procedure TMenu.MenuChanged(Sender: TObject; Source: TMenuItem; Rebuild: Boolean);
|
||||
|
@ -322,8 +322,7 @@ begin
|
||||
if not assigned (FItems) then exit;
|
||||
|
||||
for i := 0 to FItems.Count - 1 do
|
||||
if TComponent (FItems[i]).Owner = Root then
|
||||
Proc(TComponent(FItems[i]));
|
||||
Proc(TComponent(FItems[i]));
|
||||
end;
|
||||
|
||||
function TMenuItem.GetAction: TBasicAction;
|
||||
|
Loading…
Reference in New Issue
Block a user