Changeset 76484 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 26, 2018 10:38:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r76205 r76484 3805 3805 3806 3806 bool fCancelled = false; 3807 bool fCreateEmpty = false; 3807 3808 QUuid uMediumId; 3808 3809 switch (enmDevice) … … 3826 3827 uMediumId = vboxGlobal().openMediumSelectorDialog(this, UIMediumDeviceType_DVD, 3827 3828 m_strMachineName, m_strMachineSettingsFilePath); 3829 /* For optical medium we allow creating an empty drive: */ 3830 else if (iAnswer == AlertButton_Choice1) 3831 fCreateEmpty = true; 3828 3832 else if (iAnswer == AlertButton_Cancel) 3829 3833 fCancelled = true; … … 3843 3847 } 3844 3848 3845 if (!fCancelled && !uMediumId.isNull())3849 if (!fCancelled && (!uMediumId.isNull() || fCreateEmpty)) 3846 3850 { 3847 3851 m_pModelStorage->addAttachment(QUuid(m_pModelStorage->data(index, StorageModel::R_ItemId).toString()), enmDevice, uMediumId);
Note:
See TracChangeset
for help on using the changeset viewer.