Changeset 618 in vbox
- Timestamp:
- Feb 5, 2007 8:48:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r439 r618 580 580 581 581 /* 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 585 588 : CEnums::InvalidActivity); 586 mUsbLedTip = new VBoxUSBLedTip (usb_light, cconsole, isUSBEnabled); 589 mUsbLedTip = new VBoxUSBLedTip (usb_light, cconsole, isUSBEnabled); 590 } 587 591 588 592 /* start an idle timer that will update device lighths */ … … 1295 1299 /// @todo (r=dmik) do we really need to disable the control while 1296 1300 // in Pause? Check the same for CD/DVD above. 1297 if (mUsbLedTip ->isUSBEnabled())1301 if (mUsbLedTip && mUsbLedTip->isUSBEnabled()) 1298 1302 devicesUSBMenu->setEnabled (machine_state == CEnums::Running); 1299 1303 }
Note:
See TracChangeset
for help on using the changeset viewer.