VirtualBox

Ignore:
Timestamp:
Dec 26, 2018 10:38:23 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9346. Allow creating an optical drive during vm storage attachment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r76205 r76484  
    38053805
    38063806    bool fCancelled = false;
     3807    bool fCreateEmpty = false;
    38073808    QUuid uMediumId;
    38083809    switch (enmDevice)
     
    38263827                uMediumId = vboxGlobal().openMediumSelectorDialog(this, UIMediumDeviceType_DVD,
    38273828                                                                  m_strMachineName, m_strMachineSettingsFilePath);
     3829            /* For optical medium we allow creating an empty drive: */
     3830            else if (iAnswer == AlertButton_Choice1)
     3831                fCreateEmpty = true;
    38283832            else if (iAnswer == AlertButton_Cancel)
    38293833                fCancelled = true;
     
    38433847    }
    38443848
    3845     if (!fCancelled && !uMediumId.isNull())
     3849    if (!fCancelled && (!uMediumId.isNull() || fCreateEmpty))
    38463850    {
    38473851        m_pModelStorage->addAttachment(QUuid(m_pModelStorage->data(index, StorageModel::R_ItemId).toString()), enmDevice, uMediumId);
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