VirtualBox

Ignore:
Timestamp:
Oct 21, 2009 10:17:08 AM (15 years ago)
Author:
vboxsync
Message:

API: make necessary adjustments to support DVD passthrough again, together with the necessary client code changes. Unfortunately it is not possible to define the API in the ideal way due to how settings are handled in MachineImpl.cpp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsHD.cpp

    r23854 r23928  
    17891789                QString attMediumId = mStorageModel->data (attIndex, StorageModel::R_AttMediumId).toString();
    17901790                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());
    17941794                maxUsedPort = attStorageSlot.port > maxUsedPort ? attStorageSlot.port : maxUsedPort;
    17951795            }
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