VirtualBox

Changeset 77326 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 15, 2019 9:46:05 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9340. Use correct type during medium attachment.

File:
1 edited

Legend:

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

    r77291 r77326  
    38023802}
    38033803
    3804 void UIMachineSettingsStorage::addAttachmentWrapper(KDeviceType enmDevice)
     3804void UIMachineSettingsStorage::addAttachmentWrapper(KDeviceType enmDeviceType)
    38053805{
    38063806    const QModelIndex index = m_pTreeStorage->currentIndex();
     
    38113811
    38123812    QUuid uMediumId;
    3813     int iResult = vboxGlobal().openMediumSelectorDialog(this, UIMediumDefs::mediumTypeToLocal(enmDevice), uMediumId,
     3813    int iResult = vboxGlobal().openMediumSelectorDialog(this, UIMediumDefs::mediumTypeToLocal(enmDeviceType), uMediumId,
    38143814                                                        strMachineFolder, m_strMachineName,
    38153815                                                        m_strMachineGuestOSTypeId, true /* enable cr1eate action: */);
     
    38233823    /* Only DVDs and floppy can be created empty: */
    38243824    if (iResult == static_cast<int>(UIMediumSelector::ReturnCode_LeftEmpty) &&
    3825         (m_pMediumIdHolder->type() != UIMediumDeviceType_DVD && m_pMediumIdHolder->type() != UIMediumDeviceType_Floppy))
     3825        (enmDeviceType != KDeviceType_DVD && enmDeviceType != KDeviceType_Floppy))
    38263826        return;
    38273827
    3828     m_pModelStorage->addAttachment(QUuid(m_pModelStorage->data(index, StorageModel::R_ItemId).toString()), enmDevice, uMediumId);
     3828    m_pModelStorage->addAttachment(QUuid(m_pModelStorage->data(index, StorageModel::R_ItemId).toString()), enmDeviceType, uMediumId);
    38293829    m_pModelStorage->sort();
    38303830    emit sigStorageChanged();
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