VirtualBox

Changeset 101979 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 8, 2023 1:46:09 PM (13 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10543: VM Settings / Network pages: Make sure promisc. mode combo-box values are affected by chosen platform architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkFeaturesEditor.cpp

    r101867 r101979  
    270270void UINetworkFeaturesEditor::handleFilterChange()
    271271{
    272     populateAdapterTypeCombo(); /// @todo adapter types only for now, promisc modes later?
     272    populateAdapterTypeCombo();
     273    populatePromiscuousModeCombo();
    273274}
    274275
     
    426427        m_pComboPromiscuousMode->clear();
    427428
    428         /* Populate currently supported types: */
    429         QVector<KNetworkAdapterPromiscModePolicy> supportedTypes =
    430             QVector<KNetworkAdapterPromiscModePolicy>() << KNetworkAdapterPromiscModePolicy_Deny
    431                                                         << KNetworkAdapterPromiscModePolicy_AllowNetwork
    432                                                         << KNetworkAdapterPromiscModePolicy_AllowAll;
     429        /* Load currently supported types: */
     430        const KPlatformArchitecture enmArch = optionalFlags().contains("arch")
     431                                            ? optionalFlags().value("arch").value<KPlatformArchitecture>()
     432                                            : KPlatformArchitecture_x86;
     433        CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(enmArch);
     434        QVector<KNetworkAdapterPromiscModePolicy> supportedTypes = comProperties.GetSupportedNetAdpPromiscModePols();
    433435
    434436        /* Make sure requested value if sane is present as well: */
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