VirtualBox

Changeset 15110 in vbox


Ignore:
Timestamp:
Dec 8, 2008 2:08:55 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Strict VM settings network adapters to maximum 4 in count.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsNetwork.cpp

    r12060 r15110  
    730730    /* Creating Tab Pages */
    731731    CVirtualBox vbox = vboxGlobal().virtualBox();
    732     ulong count = vbox.GetSystemProperties().GetNetworkAdapterCount();
     732    ulong count = qMin ((ULONG) 4, vbox.GetSystemProperties().GetNetworkAdapterCount());
    733733    for (ulong slot = 0; slot < count; ++ slot)
    734734    {
     
    897897    /* Load internal network list */
    898898    CVirtualBox vbox = vboxGlobal().virtualBox();
    899     ulong count = vbox.GetSystemProperties().GetNetworkAdapterCount();
     899    ulong count = qMin ((ULONG) 4, vbox.GetSystemProperties().GetNetworkAdapterCount());
    900900    CMachineVector vec =  vbox.GetMachines2();
    901901    for (CMachineVector::ConstIterator m = vec.begin();
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