Qt5: fixed doubled menu items in IDE.issue #39364

This commit is contained in:
Željan Rikalo 2021-09-14 12:03:56 +02:00
parent 0f5ed91814
commit 515da22427

View File

@ -408,7 +408,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 }