Changeset 101979 in vbox for trunk/src/VBox
- Timestamp:
- Nov 8, 2023 1:46:09 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkFeaturesEditor.cpp
r101867 r101979 270 270 void UINetworkFeaturesEditor::handleFilterChange() 271 271 { 272 populateAdapterTypeCombo(); /// @todo adapter types only for now, promisc modes later? 272 populateAdapterTypeCombo(); 273 populatePromiscuousModeCombo(); 273 274 } 274 275 … … 426 427 m_pComboPromiscuousMode->clear(); 427 428 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(); 433 435 434 436 /* Make sure requested value if sane is present as well: */
Note:
See TracChangeset
for help on using the changeset viewer.