mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 14:20:21 +02:00
Qt: Fixed duplicated menu entries.
This commit is contained in:
parent
787c6de6c0
commit
0348a514b1
@ -409,8 +409,12 @@ begin
|
|||||||
if not WSCheckMenuItem(AMenuItem, 'UpdateMenuIcon') then
|
if not WSCheckMenuItem(AMenuItem, 'UpdateMenuIcon') then
|
||||||
Exit;
|
Exit;
|
||||||
if AMenuItem.HasParent then
|
if AMenuItem.HasParent then
|
||||||
|
begin
|
||||||
|
if Assigned(TQtMenu(AMenuItem.handle).actionHandle) then
|
||||||
|
QAction_setVisible(TQtMenu(AMenuItem.handle).actionHandle, False);
|
||||||
AMenuItem.RecreateHandle;
|
AMenuItem.RecreateHandle;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
{ TQtWSMenu }
|
{ TQtWSMenu }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user