VirtualBox

Changeset 47154 in vbox


Ignore:
Timestamp:
Jul 15, 2013 11:29:56 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Machine-logic: Devices menu: Storage stuff: Cleanup unused code.

File:
1 edited

Legend:

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

    r47103 r47154  
    15521552        }
    15531553    }
    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     }
    15771554}
    15781555
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