VirtualBox

Changeset 24421 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 6, 2009 12:38:48 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: Storage Settings UI: Disabling passthrough for other than IDE controller's devices.

File:
1 edited

Legend:

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

    r24420 r24421  
    20672067                /* Getting Passthrough state */
    20682068                bool isHostDrive = mStorageModel->data (index, StorageModel::R_AttIsHostDrive).toBool();
    2069                 mCbPassthrough->setEnabled (isHostDrive);
    2070                 mCbPassthrough->setChecked (isHostDrive && mStorageModel->data (index, StorageModel::R_AttIsPassthrough).toBool());
     2069                /* Passthrough is currently available only for the IDE controller DVD device */
     2070                bool isIdeCtr = mStorageModel->data (index.parent(), StorageModel::R_CtrBusType).value <KStorageBus>() == KStorageBus_IDE;
     2071                mCbPassthrough->setEnabled (isHostDrive && isIdeCtr);
     2072                mCbPassthrough->setChecked (isHostDrive && isIdeCtr && mStorageModel->data (index, StorageModel::R_AttIsPassthrough).toBool());
    20712073
    20722074                /* Update optional widgets visibility */
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