mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 00:30:25 +02:00
Qt5: fixed doubled menu items in IDE.issue #39364
(cherry picked from commit 515da22427
)
This commit is contained in:
parent
944ed82c30
commit
de2c5d0f91
@ -400,7 +400,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