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