Changeset 77326 in vbox for trunk/src/VBox
- Timestamp:
- Feb 15, 2019 9:46:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r77291 r77326 3802 3802 } 3803 3803 3804 void UIMachineSettingsStorage::addAttachmentWrapper(KDeviceType enmDevice )3804 void UIMachineSettingsStorage::addAttachmentWrapper(KDeviceType enmDeviceType) 3805 3805 { 3806 3806 const QModelIndex index = m_pTreeStorage->currentIndex(); … … 3811 3811 3812 3812 QUuid uMediumId; 3813 int iResult = vboxGlobal().openMediumSelectorDialog(this, UIMediumDefs::mediumTypeToLocal(enmDevice ), uMediumId,3813 int iResult = vboxGlobal().openMediumSelectorDialog(this, UIMediumDefs::mediumTypeToLocal(enmDeviceType), uMediumId, 3814 3814 strMachineFolder, m_strMachineName, 3815 3815 m_strMachineGuestOSTypeId, true /* enable cr1eate action: */); … … 3823 3823 /* Only DVDs and floppy can be created empty: */ 3824 3824 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)) 3826 3826 return; 3827 3827 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); 3829 3829 m_pModelStorage->sort(); 3830 3830 emit sigStorageChanged();
Note:
See TracChangeset
for help on using the changeset viewer.