Changeset 65891 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 27, 2017 4:22:19 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UIVMInfoDialog.cpp
r64840 r65891 211 211 212 212 /* Network statistics: */ 213 ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters( KChipsetType_PIIX3);213 ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(machine.GetChipsetType()); 214 214 for (ulong i = 0; i < count; ++i) 215 215 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r65140 r65891 1257 1257 QString item; 1258 1258 1259 ulong count = m_vbox.GetSystemProperties().GetMaxNetworkAdapters( KChipsetType_PIIX3);1259 ulong count = m_vbox.GetSystemProperties().GetMaxNetworkAdapters(aMachine.GetChipsetType()); 1260 1260 int rows = 2; /* including section header and footer */ 1261 1261 for (ulong slot = 0; slot < count; slot ++) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationDataItem.cpp
r65287 r65891 403 403 UITextTable p_text; 404 404 405 ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters( KChipsetType_PIIX3);405 ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(m_machine.GetChipsetType()); 406 406 for (ulong slot = 0; slot < count; slot++) 407 407 { … … 804 804 { 805 805 /* Network statistics: */ 806 ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters( KChipsetType_PIIX3);806 ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(m_machine.GetChipsetType()); 807 807 for (ulong i = 0; i < count; ++i) 808 808 { -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp
r62493 r65891 592 592 /* Iterate over all the adapters: */ 593 593 bool fSomeInfo = false; 594 ulong u Sount = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(KChipsetType_PIIX3);595 for (ulong uSlot = 0; uSlot < u Sount; ++uSlot)594 ulong uCount = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(machine.GetChipsetType()); 595 for (ulong uSlot = 0; uSlot < uCount; ++uSlot) 596 596 { 597 597 const CNetworkAdapter &adapter = machine.GetNetworkAdapter(uSlot); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r65629 r65891 826 826 827 827 /* How many adapters to display: */ 828 /** @todo r=klaus this needs to be done based on the actual chipset type of the VM, 829 * but in this place the m_machine field isn't set yet. My observation (on Linux) 830 * is that the limitation to 4 isn't necessary any more, but this needs to be checked 831 * on all platforms to be certain that it's usable everywhere. */ 828 832 ulong uCount = qMin((ULONG)4, vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(KChipsetType_PIIX3)); 829 833 /* Add corresponding tab pages to parent tab widget: */
Note:
See TracChangeset
for help on using the changeset viewer.