VirtualBox

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


Ignore:
Timestamp:
Mar 16, 2009 3:03:12 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: fix default USB settings

File:
1 edited

Legend:

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

    r17942 r17943  
    335335    mMachine.GetAudioAdapter().SetEnabled (true);
    336336
    337 #ifdef VBOX_WITH_USB
    338337    /* 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
     338    CUSBController usbController = mMachine.GetUSBController();
     339    if (!usbController.isNull())
     340    {
     341        usbController.SetEnabled (true);
     342        usbController.SetEnabledEhci (true);
     343    }
    342344
    343345    /* Register the VM prior to attaching hard disks */
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