Changeset 103868 in vbox
- Timestamp:
- Mar 15, 2024 2:38:53 PM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 162239
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp
r103771 r103868 134 134 KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const 135 135 { 136 /* Return all families by default: */137 if (enmArch == KPlatformArchitecture_None)138 return m_guestOSFamilies;139 140 136 /* Otherwise we'll have to prepare list by arch type: */ 141 137 UIGuestOSTypeManager::UIGuestOSFamilyInfo families; … … 143 139 { 144 140 const KPlatformArchitecture enmCurrentArch = fi.m_enmArch; 145 if ( (enmCurrentArch == enmArch || enmCurrentArch == KPlatformArchitecture_None) 141 if ( ( enmCurrentArch == enmArch 142 || enmCurrentArch == KPlatformArchitecture_None 143 || enmArch == KPlatformArchitecture_None) 146 144 && (fListAll || fi.m_fSupported)) 147 145 families << fi; … … 155 153 KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const 156 154 { 157 /* Return all subtypes by default: */158 if (enmArch == KPlatformArchitecture_None)159 return m_guestOSSubtypes.value(strFamilyId);160 161 155 /* Otherwise we'll have to prepare list by arch type: */ 162 156 UIGuestOSSubtypeInfo subtypes; … … 164 158 { 165 159 const KPlatformArchitecture enmCurrentArch = si.m_enmArch; 166 if ( (enmCurrentArch == enmArch || enmCurrentArch == KPlatformArchitecture_None) 160 if ( ( enmCurrentArch == enmArch 161 || enmCurrentArch == KPlatformArchitecture_None 162 || enmArch == KPlatformArchitecture_None) 167 163 && (fListAll || si.m_fSupported)) 168 164 subtypes << si;
Note:
See TracChangeset
for help on using the changeset viewer.