Changeset 14566 in vbox for trunk/src/VBox
- Timestamp:
- Nov 25, 2008 11:35:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxOSTypeSelectorWidget.cpp
r14481 r14566 154 154 mCbType->clear(); 155 155 156 /* Check if host supports (AMD-V or VT-x) and long mode */ 157 CHost host = vboxGlobal().virtualBox().GetHost(); 158 bool mSupportsHWVirtEx = host.GetProcessorFeature (KProcessorFeature_HWVirtEx); 159 bool mSupportsLongMode = host.GetProcessorFeature (KProcessorFeature_LongMode); 160 156 161 /* Populate combo-box with OS Types related to currently selected Family ID */ 157 162 QString familyId (mCbFamily->itemData (aIndex, RoleTypeID).toString()); … … 159 164 for (int i = 0; i < types.size(); ++ i) 160 165 { 161 mCbType->insertItem (i, types [i].GetDescription()); 162 mCbType->setItemData (i, types [i].GetId(), RoleTypeID); 166 if (types [i].GetIs64Bit() && (!mSupportsHWVirtEx || !mSupportsLongMode)) 167 continue; 168 int index = mCbType->count(); 169 mCbType->insertItem (index, types [i].GetDescription()); 170 mCbType->setItemData (index, types [i].GetId(), RoleTypeID); 163 171 } 164 172
Note:
See TracChangeset
for help on using the changeset viewer.