Changeset 102219 in vbox
- Timestamp:
- Nov 21, 2023 5:16:48 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r102124 r102219 1131 1131 { 1132 1132 /* Update global tools restrictions: */ 1133 Q List<UIToolType> restrictedTypes;1133 QSet<UIToolType> restrictedTypes; 1134 1134 const bool fExpertMode = gEDataManager->isSettingsInExpertMode(); 1135 1135 if (!fExpertMode) 1136 1136 restrictedTypes << UIToolType_Media 1137 << UIToolType_Network 1138 << UIToolType_VMActivityOverview; 1137 << UIToolType_Network; 1139 1138 if (restrictedTypes.contains(m_pMenuToolsGlobal->toolsType())) 1140 1139 m_pMenuToolsGlobal->setToolsType(UIToolType_Welcome); 1141 m_pMenuToolsGlobal->setRestrictedToolTypes(restrictedTypes); 1140 const QList restrictions(restrictedTypes.begin(), restrictedTypes.end()); 1141 m_pMenuToolsGlobal->setRestrictedToolTypes(restrictions); 1142 1142 1143 1143 /* Take restrictions into account, closing all restricted tools: */ … … 1152 1152 1153 1153 /* 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; 1155 1158 if (pItem && pItem->itemType() != UIVirtualMachineItemType_Local) 1156 1159 restrictedTypes << UIToolType_Snapshots … … 1159 1162 if (restrictedTypes.contains(m_pMenuToolsMachine->toolsType())) 1160 1163 m_pMenuToolsMachine->setToolsType(UIToolType_Details); 1161 m_pMenuToolsMachine->setRestrictedToolTypes(restrictedTypes); 1164 const QList restrictions(restrictedTypes.begin(), restrictedTypes.end()); 1165 m_pMenuToolsMachine->setRestrictedToolTypes(restrictions); 1162 1166 /* Update machine menu items availability: */ 1163 1167 m_pMenuToolsMachine->setItemsEnabled(fCurrentItemIsOk);
Note:
See TracChangeset
for help on using the changeset viewer.