VirtualBox

Changeset 105518 in vbox for trunk


Ignore:
Timestamp:
Jul 26, 2024 10:11:10 AM (6 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10543: Make sure supported platforms cached in Guest OS Type Manager; It can be used for logic validation.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

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

    r105461 r105518  
    132132
    133133    /* Acquire a list of guest OS types supported by this host: */
     134    CSystemProperties comSystemProps = comVBox.GetSystemProperties();
     135    m_supportedArchTypes = comSystemProps.GetSupportedPlatformArchitectures();
    134136    m_supportedGuestOSTypeIDs.clear();
    135     CSystemProperties comSystemProps = comVBox.GetSystemProperties();
    136     foreach (const KPlatformArchitecture &enmArch, comSystemProps.GetSupportedPlatformArchitectures())
     137    foreach (const KPlatformArchitecture &enmArch, m_supportedArchTypes)
    137138    {
    138139        CPlatformProperties comPlatformProps = comVBox.GetPlatformProperties(enmArch);
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h

    r105461 r105518  
    263263    void addGuestOSType(const CGuestOSType &comType);
    264264
     265    /** Holds the list of supported platform architectures. */
     266    QVector<KPlatformArchitecture>  m_supportedArchTypes;
     267
    265268    /** Holds the list of supported guest OS type IDs. */
    266269    QStringList  m_supportedGuestOSTypeIDs;
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