Changeset 80276 in vbox for trunk/src/VBox
- Timestamp:
- Aug 14, 2019 2:36:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r80213 r80276 62 62 , m_strMACAddress(QString()) 63 63 , m_fCableConnected(false) 64 , m_enmRestrictedNetworkAttachmentTypes(UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_Invalid)65 64 {} 66 65 … … 116 115 /** Holds whether the network adapter is connected. */ 117 116 bool m_fCableConnected; 118 /** Holds the list of restricted network attachment types. */119 UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork m_enmRestrictedNetworkAttachmentTypes;120 117 }; 121 118 … … 209 206 int m_iSlot; 210 207 UIPortForwardingDataList m_portForwardingRules; 211 /** Holds the list of restricted network attachment types. */212 UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork m_enmRestrictedNetworkAttachmentTypes;213 208 }; 214 209 … … 222 217 , m_pParent(pParent) 223 218 , m_iSlot(-1) 224 , m_enmRestrictedNetworkAttachmentTypes(UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_Invalid)225 219 { 226 220 /* Apply UI decorations: */ … … 298 292 for (int i = 0; i < adapterCache.childCount(); ++i) 299 293 m_portForwardingRules << adapterCache.child(i).base(); 300 /* Cache the restricted metwork attachment types to avoid re-reading them from the extra data: */301 m_enmRestrictedNetworkAttachmentTypes = oldAdapterData.m_enmRestrictedNetworkAttachmentTypes;302 294 303 295 /* Repopulate combo-boxes content: */ … … 794 786 UIDataSettingsMachineNetwork oldNetworkData; 795 787 796 const UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork enmRestrictedNetworkAttachmentTypes =797 gEDataManager->restrictedNetworkAttachmentTypes();798 799 788 /* For each network adapter: */ 800 789 for (int iSlot = 0; iSlot < m_pTabWidget->count(); ++iSlot) … … 821 810 oldAdapterData.m_strGenericProperties = loadGenericProperties(comAdapter); 822 811 oldAdapterData.m_fCableConnected = comAdapter.GetCableConnected(); 823 oldAdapterData.m_enmRestrictedNetworkAttachmentTypes = enmRestrictedNetworkAttachmentTypes;824 812 foreach (const QString &strRedirect, comAdapter.GetNATEngine().GetRedirects()) 825 813 {
Note:
See TracChangeset
for help on using the changeset viewer.