Qt: Fixed duplicated menu entries.

This commit is contained in:
zeljan1 2022-09-07 19:24:43 +02:00
parent 787c6de6c0
commit 0348a514b1

View File

@ -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 }