- Timestamp:
- Jul 24, 2024 8:29:52 AM (6 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.cpp
r105119 r105461 317 317 } 318 318 319 bool UIGuestOSTypeManager::isGuestOSTypeIDSupported(const QString &strTypeId) const 320 { 321 return m_supportedGuestOSTypeIDs.contains(strTypeId); 322 } 323 319 324 QString UIGuestOSTypeManager::getFamilyId(const QString &strTypeId) const 320 325 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIGuestOSType.h
r105119 r105461 231 231 KPlatformArchitecture enmArch = KPlatformArchitecture_None) const; 232 232 233 /* Returns true if @p strTypeId is supported by the host. */ 234 bool isGuestOSTypeIDSupported(const QString &strTypeId) const; 235 233 236 /** Returns whether specified @a strOSTypeId is of DOS type. */ 234 237 static bool isDOSType(const QString &strOSTypeId); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp
r104899 r105461 300 300 for (size_t i = 0; i < RT_ELEMENTS(gs_OSTypePattern); ++i) 301 301 { 302 if (strNewName.contains(gs_OSTypePattern[i].pattern)) 302 if ( strNewName.contains(gs_OSTypePattern[i].pattern) 303 && gpGlobalSession->guestOSTypeManager().isGuestOSTypeIDSupported(gs_OSTypePattern[i].pcstId)) 304 { 305 303 306 return pNameAndSystemEditor->setGuestOSTypeByTypeId(gs_OSTypePattern[i].pcstId); 307 } 304 308 } 305 309 return false;
Note:
See TracChangeset
for help on using the changeset viewer.