mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 03:29:35 +02:00
Qt5: fixed doubled menu items in IDE.issue #39364
This commit is contained in:
parent
0f5ed91814
commit
515da22427
@ -408,7 +408,11 @@ 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