Changeset 93454 in vbox for trunk/src/VBox
- Timestamp:
- Jan 27, 2022 9:39:26 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 149566
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.cpp
r93409 r93454 148 148 UIWizardNewVMNameOSTypeCommon::determineOSType(strISOPath, pWizard); 149 149 150 if (! pWizard->detectedOSTypeId().isEmpty() && !m_userModifiedParameters.contains("GuestOSType"))150 if (!m_userModifiedParameters.contains("GuestOSType")) 151 151 UIWizardNewVMNameOSTypeCommon::guessOSTypeDetectedOSTypeString(m_pNameAndSystemEditor, pWizard->detectedOSTypeId()); 152 152 pWizard->setISOFilePath(strISOPath); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp
r93409 r93454 178 178 bool UIWizardNewVMNameOSTypeCommon::guessOSTypeFromName(UINameAndSystemEditor *pNameAndSystemEditor, QString strNewName) 179 179 { 180 AssertReturn(pNameAndSystemEditor, false); 180 181 /* Append default architecture bit-count (64/32) if not already in the name: */ 181 182 if (!strNewName.contains("32") && !strNewName.contains("64")) … … 193 194 if (strNewName.contains(gs_OSTypePattern[i].pattern)) 194 195 { 195 if (pNameAndSystemEditor) 196 pNameAndSystemEditor->setType(uiCommon().vmGuestOSType(gs_OSTypePattern[i].pcstId)); 196 pNameAndSystemEditor->setType(uiCommon().vmGuestOSType(gs_OSTypePattern[i].pcstId)); 197 197 return true; 198 198 } … … 203 203 bool UIWizardNewVMNameOSTypeCommon::guessOSTypeDetectedOSTypeString(UINameAndSystemEditor *pNameAndSystemEditor, QString strDetectedOSType) 204 204 { 205 AssertReturn(pNameAndSystemEditor, false); 206 if (strDetectedOSType.isEmpty()) 207 pNameAndSystemEditor->setType(uiCommon().vmGuestOSType("Other")); 205 208 /* Append 32 as bit-count if the name has no 64 and 32 in the name since API returns a type name with no arch bit count for 32-bit OSs: */ 206 209 if (!strDetectedOSType.contains("32") && !strDetectedOSType.contains("64")) … … 212 215 if (strDetectedOSType.contains(gs_OSTypePattern[i].pattern)) 213 216 { 214 if (pNameAndSystemEditor) 215 217 218 pNameAndSystemEditor->setType(uiCommon().vmGuestOSType(gs_OSTypePattern[i].pcstId)); 216 219 return true; 217 220 } … … 471 474 UIWizardNewVMNameOSTypeCommon::determineOSType(strPath, pWizard); 472 475 473 if (! pWizard->detectedOSTypeId().isEmpty() && !m_userModifiedParameters.contains("GuestOSType"))476 if (!m_userModifiedParameters.contains("GuestOSType")) 474 477 UIWizardNewVMNameOSTypeCommon::guessOSTypeDetectedOSTypeString(m_pNameAndSystemEditor, pWizard->detectedOSTypeId()); 475 478 pWizard->setISOFilePath(strPath);
Note:
See TracChangeset
for help on using the changeset viewer.