VirtualBox

Changeset 103868 in vbox


Ignore:
Timestamp:
Mar 15, 2024 2:38:53 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162239
Message:

FE/Qt: bugref:10384: Make sure restricted families and subtypes (missing in supported guest OS type list) are hidden in New VM wizard.

File:
1 edited

Legend:

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

    r103771 r103868  
    134134                                  KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const
    135135{
    136     /* Return all families by default: */
    137     if (enmArch == KPlatformArchitecture_None)
    138         return m_guestOSFamilies;
    139 
    140136    /* Otherwise we'll have to prepare list by arch type: */
    141137    UIGuestOSTypeManager::UIGuestOSFamilyInfo families;
     
    143139    {
    144140        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)
    146144            && (fListAll || fi.m_fSupported))
    147145            families << fi;
     
    155153                                             KPlatformArchitecture enmArch /* = KPlatformArchitecture_None */) const
    156154{
    157     /* Return all subtypes by default: */
    158     if (enmArch == KPlatformArchitecture_None)
    159         return m_guestOSSubtypes.value(strFamilyId);
    160 
    161155    /* Otherwise we'll have to prepare list by arch type: */
    162156    UIGuestOSSubtypeInfo subtypes;
     
    164158    {
    165159        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)
    167163            && (fListAll || si.m_fSupported))
    168164            subtypes << si;
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