Changeset 47154 in vbox
- Timestamp:
- Jul 15, 2013 11:29:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r47103 r47154 1552 1552 } 1553 1553 } 1554 1555 if (pMenu->menuAction()->data().toInt() == 0)1556 {1557 /* Empty menu item */1558 Assert(pMenu->isEmpty());1559 QAction *pEmptyMenuAction = new QAction(pMenu);1560 pEmptyMenuAction->setEnabled(false);1561 switch (mediumType)1562 {1563 case UIMediumType_DVD:1564 pEmptyMenuAction->setText(QApplication::translate("UIMachineLogic", "No CD/DVD Devices Attached"));1565 pEmptyMenuAction->setToolTip(QApplication::translate("UIMachineLogic", "No CD/DVD devices attached to that VM"));1566 break;1567 case UIMediumType_Floppy:1568 pEmptyMenuAction->setText(QApplication::translate("UIMachineLogic", "No Floppy Devices Attached"));1569 pEmptyMenuAction->setToolTip(QApplication::translate("UIMachineLogic", "No floppy devices attached to that VM"));1570 break;1571 default:1572 break;1573 }1574 pEmptyMenuAction->setIcon(UIIconPool::iconSet(":/delete_16px.png", ":/delete_dis_16px.png"));1575 pMenu->addAction(pEmptyMenuAction);1576 }1577 1554 } 1578 1555
Note:
See TracChangeset
for help on using the changeset viewer.