VirtualBox

Ignore:
Timestamp:
Aug 13, 2020 4:25:32 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9722: UIActionPoolManager stuff: Fixing regression of r138985; Top-level menus like Group and Machine can't be empty cause they will be hidden by Cocoa in that case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp

    r85675 r85752  
    39213921    pMenu->clear();
    39223922
     3923#ifdef VBOX_WS_MAC
     3924    // WORKAROUND:
     3925    // On macOS you can't leave menu empty and still have it in
     3926    // the menu-bar, you have to leave there at least something.
     3927    // Remaining stuff will be appended from UIVirtualBoxManager.
     3928    pMenu->addAction(action(UIActionIndexMN_M_Group_S_New));
     3929#endif
     3930
    39233931    /* This menu always remains invalid.. */
    39243932}
     
    39313939    /* Clear contents: */
    39323940    pMenu->clear();
     3941
     3942#ifdef VBOX_WS_MAC
     3943    // WORKAROUND:
     3944    // On macOS you can't leave menu empty and still have it in
     3945    // the menu-bar, you have to leave there at least something.
     3946    // Remaining stuff will be appended from UIVirtualBoxManager.
     3947    pMenu->addAction(action(UIActionIndexMN_M_Machine_S_New));
     3948#endif
    39333949
    39343950    /* This menu always remains invalid.. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette