VirtualBox

Changeset 618 in vbox


Ignore:
Timestamp:
Feb 5, 2007 8:48:21 AM (18 years ago)
Author:
vboxsync
Message:

fixed USB assertion in OSE

File:
1 edited

Legend:

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

    r439 r618  
    580580
    581581    /* initialize usb stuff */
    582     bool isUSBEnabled = cmachine.GetUSBController().GetEnabled();
    583     devicesUSBMenu->setEnabled (isUSBEnabled);
    584     usb_light->setState (isUSBEnabled ? CEnums::DeviceIdle
     582    CUSBController usbctl = cmachine.GetUSBController();
     583    if (!usbctl.isNull())
     584    {
     585        bool isUSBEnabled =  usbctl.GetEnabled();
     586        devicesUSBMenu->setEnabled (isUSBEnabled);
     587        usb_light->setState (isUSBEnabled ? CEnums::DeviceIdle
    585588                                      : CEnums::InvalidActivity);
    586     mUsbLedTip = new VBoxUSBLedTip (usb_light, cconsole, isUSBEnabled);
     589        mUsbLedTip = new VBoxUSBLedTip (usb_light, cconsole, isUSBEnabled);
     590    }
    587591
    588592    /* start an idle timer that will update device lighths */
     
    12951299        /// @todo (r=dmik) do we really need to disable the control while
    12961300        //  in Pause? Check the same for CD/DVD above.
    1297         if (mUsbLedTip->isUSBEnabled())
     1301        if (mUsbLedTip && mUsbLedTip->isUSBEnabled())
    12981302            devicesUSBMenu->setEnabled (machine_state == CEnums::Running);
    12991303    }
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