Changeset 23928 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 21, 2009 10:17:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsHD.cpp
r23854 r23928 1789 1789 QString attMediumId = mStorageModel->data (attIndex, StorageModel::R_AttMediumId).toString(); 1790 1790 mMachine.AttachDevice (ctrName, attStorageSlot.port, attStorageSlot.device, attDeviceType, attMediumId); 1791 CMediumAttachment attachment = mMachine.GetMediumAttachment (ctrName, attStorageSlot.port, attStorageSlot.device);1792 attachment.SetPassthrough (mStorageModel->data (attIndex, StorageModel::R_AttIsHostDrive).toBool() &&1793 mStorageModel->data (attIndex, StorageModel::R_AttIsPassthrough).toBool());1791 if (attDeviceType == KDeviceType_DVD) 1792 mMachine.PassthroughDevice (ctrName, attStorageSlot.port, attStorageSlot.device, 1793 mStorageModel->data (attIndex, StorageModel::R_AttIsPassthrough).toBool()); 1794 1794 maxUsedPort = attStorageSlot.port > maxUsedPort ? attStorageSlot.port : maxUsedPort; 1795 1795 }
Note:
See TracChangeset
for help on using the changeset viewer.