- Timestamp:
- Feb 3, 2014 3:11:24 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp
r50253 r50310 198 198 { 199 199 QString strDefaultID = "WindowsXP"; 200 if ( ARCH_BITS == 64)200 if (m_fSupportsHWVirtEx && m_fSupportsLongMode) 201 201 strDefaultID += "_64"; 202 202 int iIndexWinXP = m_pTypeCombo->findData(strDefaultID, TypeID); … … 208 208 { 209 209 QString strDefaultID = "Ubuntu"; 210 if ( ARCH_BITS == 64)210 if (m_fSupportsHWVirtEx && m_fSupportsLongMode) 211 211 strDefaultID += "_64"; 212 212 int iIndexUbuntu = m_pTypeCombo->findData(strDefaultID, TypeID); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r50253 r50310 33 33 /* COM includes: */ 34 34 #include "CSystemProperties.h" 35 36 /* Other VBox includes: */37 #include <iprt/system.h>38 35 39 36 /* Defines some patterns to guess the right OS type. Should be in sync with … … 163 160 : m_strGroup(strGroup) 164 161 { 162 CHost host = vboxGlobal().host(); 163 m_fSupportsHWVirtEx = host.GetProcessorFeature(KProcessorFeature_HWVirtEx); 164 m_fSupportsLongMode = host.GetProcessorFeature(KProcessorFeature_LongMode); 165 165 } 166 166 … … 168 168 { 169 169 /* Do not forget about achitecture bits: */ 170 strNewName += QString::number(ARCH_BITS);170 strNewName += m_fSupportsHWVirtEx && m_fSupportsLongMode ? "64" : "32"; 171 171 172 172 /* Search for a matching OS type based on the string the user typed already. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.h
r50253 r50310 61 61 /* Variables: */ 62 62 QString m_strGroup; 63 bool m_fSupportsHWVirtEx; 64 bool m_fSupportsLongMode; 63 65 }; 64 66
Note:
See TracChangeset
for help on using the changeset viewer.