VirtualBox

Ignore:
Timestamp:
Apr 28, 2021 10:36:49 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144088
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Reworking r144082 since it wasn't covering all the possible cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r88752 r88758  
    703703void UIVirtualBoxManager::sltHandleChooserPaneIndexChange()
    704704{
     705    // WORKAROUND:
     706    // These menus are dynamical since local and cloud VMs have different menu contents.
     707    // Yet .. we have to prepare Machine/Group menus beforehand, they contains shortcuts.
     708    if (currentItem())
     709    {
     710        updateMenuGroup(actionPool()->action(UIActionIndexMN_M_Group)->menu());
     711        updateMenuMachine(actionPool()->action(UIActionIndexMN_M_Machine)->menu());
     712    }
     713
    705714    updateActionsVisibility();
    706715    updateActionsAppearance();
     
    21702179    prepareConnections();
    21712180
    2172     // WORKAROUND:
    2173     // These menus are dynamical since local and cloud VMs have different menu contents.
    2174     // Yet .. we have to prepare Machine/Group menus beforehand, they contains shortcuts.
    2175     updateMenuGroup(actionPool()->action(UIActionIndexMN_M_Group)->menu());
    2176     updateMenuMachine(actionPool()->action(UIActionIndexMN_M_Machine)->menu());
    2177 
    21782181    /* Update actions initially: */
    2179     updateActionsVisibility();
    2180     updateActionsAppearance();
     2182    sltHandleChooserPaneIndexChange();
    21812183
    21822184    /* Load settings: */
Note: See TracChangeset for help on using the changeset viewer.

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