VirtualBox

Changeset 102219 in vbox


Ignore:
Timestamp:
Nov 21, 2023 5:16:48 PM (12 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: Changed requirements for Basic set of Global/Machine tools; We've decided to bring global activity overview tools back to Basics; Besides that, we've decided to remove File Manager from Basic set of Machine tools.

File:
1 edited

Legend:

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

    r102124 r102219  
    11311131{
    11321132    /* Update global tools restrictions: */
    1133     QList<UIToolType> restrictedTypes;
     1133    QSet<UIToolType> restrictedTypes;
    11341134    const bool fExpertMode = gEDataManager->isSettingsInExpertMode();
    11351135    if (!fExpertMode)
    11361136        restrictedTypes << UIToolType_Media
    1137                         << UIToolType_Network
    1138                         << UIToolType_VMActivityOverview;
     1137                        << UIToolType_Network;
    11391138    if (restrictedTypes.contains(m_pMenuToolsGlobal->toolsType()))
    11401139        m_pMenuToolsGlobal->setToolsType(UIToolType_Welcome);
    1141     m_pMenuToolsGlobal->setRestrictedToolTypes(restrictedTypes);
     1140    const QList restrictions(restrictedTypes.begin(), restrictedTypes.end());
     1141    m_pMenuToolsGlobal->setRestrictedToolTypes(restrictions);
    11421142
    11431143    /* Take restrictions into account, closing all restricted tools: */
     
    11521152
    11531153    /* Update machine tools restrictions: */
    1154     QList<UIToolType> restrictedTypes;
     1154    QSet<UIToolType> restrictedTypes;
     1155    const bool fExpertMode = gEDataManager->isSettingsInExpertMode();
     1156    if (!fExpertMode)
     1157        restrictedTypes << UIToolType_FileManager;
    11551158    if (pItem && pItem->itemType() != UIVirtualMachineItemType_Local)
    11561159        restrictedTypes << UIToolType_Snapshots
     
    11591162    if (restrictedTypes.contains(m_pMenuToolsMachine->toolsType()))
    11601163        m_pMenuToolsMachine->setToolsType(UIToolType_Details);
    1161     m_pMenuToolsMachine->setRestrictedToolTypes(restrictedTypes);
     1164    const QList restrictions(restrictedTypes.begin(), restrictedTypes.end());
     1165    m_pMenuToolsMachine->setRestrictedToolTypes(restrictions);
    11621166    /* Update machine menu items availability: */
    11631167    m_pMenuToolsMachine->setItemsEnabled(fCurrentItemIsOk);
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