VirtualBox

Changeset 93643 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 7, 2022 4:58:33 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9515. Addendum to r149783. Changing windows edition updates vm OS type. Just like IUnattended does.

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

    r93642 r93643  
    848848void UIWizardNewVMExpertPage::sltSelectedEditionChanged(ulong uEditionIndex)
    849849{
    850     AssertReturnVoid(wizardWindow<UIWizardNewVM>());
    851     wizardWindow<UIWizardNewVM>()->setSelectedWindowImageIndex(uEditionIndex);
     850    UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>();
     851    AssertReturnVoid(pWizard);
     852    pWizard->setSelectedWindowImageIndex(uEditionIndex);
     853    /* Update the OS type since IUnattended updates the detected OS type after edition (image index) changes: */
     854    UIWizardNewVMNameOSTypeCommon::guessOSTypeDetectedOSTypeString(m_pNameAndSystemEditor, pWizard->detectedOSTypeId());
    852855}
    853856
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp

    r93642 r93643  
    493493void UIWizardNewVMNameOSTypePage::sltSelectedEditionChanged(ulong uEditionIndex)
    494494{
    495     AssertReturnVoid(wizardWindow<UIWizardNewVM>());
    496     wizardWindow<UIWizardNewVM>()->setSelectedWindowImageIndex(uEditionIndex);
     495    UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>();
     496    AssertReturnVoid(pWizard);
     497    pWizard->setSelectedWindowImageIndex(uEditionIndex);
     498    /* Update the OS type since IUnattended updates the detected OS type after edition (image index) changes: */
     499    UIWizardNewVMNameOSTypeCommon::guessOSTypeDetectedOSTypeString(m_pNameAndSystemEditor, pWizard->detectedOSTypeId());
    497500}
    498501
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette