- Timestamp:
- May 7, 2010 12:04:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsHD.cpp
r29197 r29199 1852 1852 KDeviceType attDeviceType = mStorageModel->data (attIndex, StorageModel::R_AttDevice).value <KDeviceType>(); 1853 1853 QString attMediumId = mStorageModel->data (attIndex, StorageModel::R_AttMediumId).toString(); 1854 QString attMediumLocation = mStorageModel->data (attIndex, StorageModel::R_AttLocation).toString(); 1854 1855 mMachine.AttachDevice (ctrName, attStorageSlot.port, attStorageSlot.device, attDeviceType, attMediumId); 1855 if (attDeviceType == KDeviceType_DVD) 1856 mMachine.PassthroughDevice (ctrName, attStorageSlot.port, attStorageSlot.device, 1857 mStorageModel->data (attIndex, StorageModel::R_AttIsPassthrough).toBool()); 1858 maxUsedPort = attStorageSlot.port > maxUsedPort ? attStorageSlot.port : maxUsedPort; 1856 if (mMachine.isOk()) 1857 { 1858 if (attDeviceType == KDeviceType_DVD) 1859 mMachine.PassthroughDevice (ctrName, attStorageSlot.port, attStorageSlot.device, 1860 mStorageModel->data (attIndex, StorageModel::R_AttIsPassthrough).toBool()); 1861 maxUsedPort = attStorageSlot.port > maxUsedPort ? attStorageSlot.port : maxUsedPort; 1862 } 1863 else 1864 vboxProblem().cannotAttachDevice(this, mMachine, VBoxDefs::MediumType_HardDisk, attMediumLocation, 1865 attStorageSlot.bus, attStorageSlot.port, attStorageSlot.device); 1859 1866 } 1860 1867 if (ctrBusType == KStorageBus_SATA)
Note:
See TracChangeset
for help on using the changeset viewer.