VirtualBox

Changeset 26977 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 2, 2010 9:33:25 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: IUSBController::proxyAvailable() fixes

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

Legend:

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

    r26908 r26977  
    19981998
    19991999        CUSBController ctl = aMachine.GetUSBController();
    2000         if (!ctl.isNull())
     2000        if (   !ctl.isNull()
     2001            && ctl.GetProxyAvailable())
    20012002        {
    20022003            /* the USB controller may be unavailable (i.e. in VirtualBox OSE) */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r26964 r26977  
    590590        /* USB Stuff: */
    591591        CUSBController usbController = machine.GetUSBController();
    592         if (usbController.isNull())
    593         {
    594             /* Hide USB menu if controller is NULL: */
     592        if (   usbController.isNull()
     593            || !usbController.GetProxyAvailable())
     594        {
     595            /* Hide USB menu if controller is NULL or no USB proxy available: */
    595596            uimachine()->actionsPool()->action(UIActionIndex_Menu_USBDevices)->setVisible(false);
    596597        }
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/VBoxSettingsDialogSpecific.cpp

    r26714 r26977  
    597597
    598598            /* Check if USB is implemented */
    599             if (ctl.isNull())
     599            if (   ctl.isNull()
     600                || !ctl.GetProxyAvailable())
    600601                return false;
    601602
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp

    r26714 r26977  
    662662    /* Enable the OHCI and EHCI controller by default for new VMs. (new in 2.2) */
    663663    CUSBController usbController = m_Machine.GetUSBController();
    664     if (!usbController.isNull())
     664    if (   !usbController.isNull()
     665        && usbController.GetProxyAvailable())
    665666    {
    666667        usbController.SetEnabled(true);
     
    692693        m_Machine.SetKeyboardHidType(KKeyboardHidType_USBKeyboard);
    693694        m_Machine.SetPointingHidType(KPointingHidType_USBMouse);
     695        if (!usbController.isNull())
     696            usbController.SetEnabled(true);
    694697    }
    695698
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