Changeset 438 in vbox
- Timestamp:
- Jan 30, 2007 3:47:59 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18015
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r382 r438 75 75 76 76 ~VBoxUSBLedTip() { remove (parentWidget()); } 77 78 bool isUSBEnabled() const { return mUSBEnabled; } 77 79 78 80 protected: … … 580 582 bool isUSBEnabled = cmachine.GetUSBController().GetEnabled(); 581 583 devicesUSBMenu->setEnabled (isUSBEnabled); 582 usb_light->setState (CEnums::InvalidActivity); 584 usb_light->setState (isUSBEnabled ? CEnums::DeviceIdle 585 : CEnums::InvalidActivity); 583 586 mUsbLedTip = new VBoxUSBLedTip (usb_light, cconsole, isUSBEnabled); 584 587 … … 1290 1293 if (element & USBStuff) 1291 1294 { 1292 devicesUSBMenu->setEnabled (machine_state == CEnums::Running); 1295 /// @todo (r=dmik) do we really need to disable the control while 1296 // in Pause? Check the same for CD/DVD above. 1297 if (mUsbLedTip->isUSBEnabled()) 1298 devicesUSBMenu->setEnabled (machine_state == CEnums::Running); 1293 1299 } 1294 1300 if (element & PauseAction) … … 2023 2029 net_light->setState (st); 2024 2030 } 2031 if (usb_light->state() != CEnums::InvalidActivity) { 2032 st = cconsole.GetDeviceActivity (CEnums::USBDevice); 2033 if (usb_light->state() != st) 2034 usb_light->setState (st); 2035 } 2025 2036 } 2026 2037 }
Note:
See TracChangeset
for help on using the changeset viewer.