mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-13 11:15:55 +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);
|
procedure TMenu.GetChildren(Proc: TGetChildProc; Root: TComponent);
|
||||||
var
|
var
|
||||||
i : integer;
|
i: integer;
|
||||||
begin
|
begin
|
||||||
for i := 0 to FItems.Count - 1 do
|
for i := 0 to FItems.Count - 1 do
|
||||||
if FItems[i].Owner = Root
|
Proc(TComponent(FItems[i]));
|
||||||
then Proc(TComponent (FItems [i]));
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMenu.MenuChanged(Sender: TObject; Source: TMenuItem; Rebuild: Boolean);
|
procedure TMenu.MenuChanged(Sender: TObject; Source: TMenuItem; Rebuild: Boolean);
|
||||||
|
@ -322,7 +322,6 @@ begin
|
|||||||
if not assigned (FItems) then exit;
|
if not assigned (FItems) then exit;
|
||||||
|
|
||||||
for i := 0 to FItems.Count - 1 do
|
for i := 0 to FItems.Count - 1 do
|
||||||
if TComponent (FItems[i]).Owner = Root then
|
|
||||||
Proc(TComponent(FItems[i]));
|
Proc(TComponent(FItems[i]));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user