VirtualBox

Changeset 17942 in vbox


Ignore:
Timestamp:
Mar 16, 2009 2:54:50 PM (16 years ago)
Author:
vboxsync
Message:

Moved default USB enabling to the GUI.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r17669 r17942  
    334334    /* Enabling audio by default */
    335335    mMachine.GetAudioAdapter().SetEnabled (true);
     336
     337#ifdef VBOX_WITH_USB
     338    /* Enable the OHCI and EHCI controller by default for new VMs. (new in 2.2) */
     339    mMachine.GetUSBController().SetEnabled (true);
     340    mMachine.GetUSBController().SetEnabledEhci (true);
     341#endif
    336342
    337343    /* Register the VM prior to attaching hard disks */
  • trunk/src/VBox/Main/MachineImpl.cpp

    r17934 r17942  
    522522                CheckComRCReturnRC(rc);
    523523                ctl->COMSETTER(ControllerType)(StorageControllerType_PIIX4);
    524 
    525 #ifdef VBOX_WITH_USB
    526                 /* Enable the OHCI and EHCI controller by default for new VMs. (new in 2.2) */
    527                 mUSBController->COMSETTER(Enabled)(TRUE);
    528                 mUSBController->COMSETTER(EnabledEhci)(TRUE);
    529 #endif
    530524            }
    531525
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