Changeset 24421 in vbox for trunk/src/VBox
- Timestamp:
- Nov 6, 2009 12:38:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsHD.cpp
r24420 r24421 2067 2067 /* Getting Passthrough state */ 2068 2068 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()); 2071 2073 2072 2074 /* Update optional widgets visibility */
Note:
See TracChangeset
for help on using the changeset viewer.