VirtualBox

Changeset 77345 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 18, 2019 12:49:50 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9340. Using medium selector in the first time run wizard

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r77344 r77345  
    28902890                                                               "This is used for hard disks, optical media and floppies"));
    28912891
    2892     // /* Prepare create floppy disk action: */
    2893     // if (enmMediumType == UIMediumDeviceType_Floppy)
    2894     // {
    2895     //     QAction *pActionCreateFloppy = menu.addAction(UIIconPool::iconSet(":/fd_add_16px.png"),
    2896     //                                                   QString(), pListener, pszSlotName);
    2897     //     pActionCreateFloppy->setData(QVariant::fromValue(UIMediumTarget(strControllerName, comCurrentAttachment.GetPort(),
    2898     //                                                                     comCurrentAttachment.GetDevice(), enmMediumType,
    2899     //                                                                     UIMediumTarget::UIMediumTargetType_CreateFloppyDisk)));
    2900     //     pActionCreateFloppy->setText(QApplication::translate("UIMachineSettingsStorage", "Create a new floppy disk...",
    2901     //                                                          "This is used to create a new floppy disk"));
    2902     // }
    2903     // /* Prepare ad-hoc-viso action for DVD-ROMs: */
    2904     // if (enmMediumType == UIMediumDeviceType_DVD)
    2905     // {
    2906     //     QAction *pActionAdHocViso = menu.addAction(UIIconPool::iconSet(":/select_file_16px.png"),
    2907     //                                                QString(), pListener, pszSlotName);
    2908     //     pActionAdHocViso->setData(QVariant::fromValue(UIMediumTarget(strControllerName, comCurrentAttachment.GetPort(),
    2909     //                                                                  comCurrentAttachment.GetDevice(), enmMediumType,
    2910     //                                                                  UIMediumTarget::UIMediumTargetType_CreateAdHocVISO)));
    2911     //     pActionAdHocViso->setText(QApplication::translate("UIMachineSettingsStorage", "Create ad hoc VISO...",
    2912     //                                                       "This is used for optical media"));
    2913     // }
    2914 
    29152892
    29162893    /* Insert separator: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp

    r76606 r77345  
    4040{
    4141    /* Get opened vboxMedium id: */
    42     QUuid uMediumId = vboxGlobal().openMediumWithFileOpenDialog(m_pMediaSelector->type(), thisImp());
     42    QUuid uMediumId;
     43    vboxGlobal().openMediumSelectorDialog(thisImp(), UIMediumDeviceType_DVD, uMediumId, "", "", "", true);
    4344    /* Update medium-combo if necessary: */
    4445    if (!uMediumId.isNull())
     
    159160    return m_pMediaSelector->currentText();
    160161}
    161 
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