VirtualBox

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


Ignore:
Timestamp:
May 4, 2010 8:23:10 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61020
Message:

FE/Qt4: new core: fix usb availability checking

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r28963 r28994  
    14771477{
    14781478    /* Get uisession machine: */
    1479     CMachine machine = session().GetConsole().GetMachine();
     1479    const CMachine &machine = session().GetConsole().GetMachine();
    14801480
    14811481    /* Availability settings: */
    14821482    {
    14831483        /* USB Stuff: */
    1484         CUSBController usbController = machine.GetUSBController();
     1484        const CUSBController &usbController = machine.GetUSBController();
    14851485        if (   usbController.isNull()
     1486            || !usbController.GetEnabled()
    14861487            || !usbController.GetProxyAvailable())
    14871488        {
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r28800 r28994  
    556556    {
    557557        /* USB Stuff: */
    558         CUSBController usbController = machine.GetUSBController();
    559         if (usbController.isNull())
     558        const CUSBController &usbController = machine.GetUSBController();
     559        if (    usbController.isNull()
     560            || !usbController.GetEnabled()
     561            || !usbController.GetProxyAvailable())
    560562        {
    561563            /* Hide USB Menu: */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette