VirtualBox

Changeset 47975 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 21, 2013 4:05:31 PM (11 years ago)
Author:
vboxsync
Message:

Frontends/VirtualBox: move USB enabled check to a more logical place, no actual bebahvior change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r47944 r47975  
    246246    UIDataSettingsMachineUSB usbData;
    247247
     248    /* Gather USB values: */
     249    usbData.m_fUSBEnabled = m_machine.GetUSBControllerCountByType(KUSBControllerType_OHCI) > 0;
     250    usbData.m_fEHCIEnabled = m_machine.GetUSBControllerCountByType(KUSBControllerType_EHCI) > 0;
     251
    248252    /* Check if controller is valid: */
    249253    const CUSBDeviceFilters &filters = m_machine.GetUSBDeviceFilters();
    250254    if (!filters.isNull())
    251255    {
    252         /* Gather USB values: */
    253         usbData.m_fUSBEnabled = m_machine.GetUSBControllerCountByType(KUSBControllerType_OHCI) > 0;
    254         usbData.m_fEHCIEnabled = m_machine.GetUSBControllerCountByType(KUSBControllerType_EHCI) > 0;
    255 
    256256        /* For each USB filter: */
    257257        const CUSBDeviceFilterVector &coll = filters.GetDeviceFilters();
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