VirtualBox

Changeset 65891 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 27, 2017 4:22:19 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: use the chipset specific network card limit (except in one place which needs more work)

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

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

    r64840 r65891  
    211211
    212212    /* Network statistics: */
    213     ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(KChipsetType_PIIX3);
     213    ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(machine.GetChipsetType());
    214214    for (ulong i = 0; i < count; ++i)
    215215    {
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r65140 r65891  
    12571257        QString item;
    12581258
    1259         ulong count = m_vbox.GetSystemProperties().GetMaxNetworkAdapters(KChipsetType_PIIX3);
     1259        ulong count = m_vbox.GetSystemProperties().GetMaxNetworkAdapters(aMachine.GetChipsetType());
    12601260        int rows = 2; /* including section header and footer */
    12611261        for (ulong slot = 0; slot < count; slot ++)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationDataItem.cpp

    r65287 r65891  
    403403            UITextTable p_text;
    404404
    405             ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(KChipsetType_PIIX3);
     405            ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(m_machine.GetChipsetType());
    406406            for (ulong slot = 0; slot < count; slot++)
    407407            {
     
    804804{
    805805    /* Network statistics: */
    806     ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(KChipsetType_PIIX3);
     806    ulong count = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(m_machine.GetChipsetType());
    807807    for (ulong i = 0; i < count; ++i)
    808808    {
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp

    r62493 r65891  
    592592        /* Iterate over all the adapters: */
    593593        bool fSomeInfo = false;
    594         ulong uSount = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(KChipsetType_PIIX3);
    595         for (ulong uSlot = 0; uSlot < uSount; ++uSlot)
     594        ulong uCount = vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(machine.GetChipsetType());
     595        for (ulong uSlot = 0; uSlot < uCount; ++uSlot)
    596596        {
    597597            const CNetworkAdapter &adapter = machine.GetNetworkAdapter(uSlot);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp

    r65629 r65891  
    826826
    827827    /* 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. */
    828832    ulong uCount = qMin((ULONG)4, vboxGlobal().virtualBox().GetSystemProperties().GetMaxNetworkAdapters(KChipsetType_PIIX3));
    829833    /* Add corresponding tab pages to parent tab widget: */
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