VirtualBox

Changeset 85637 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 6, 2020 3:19:33 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9515. Initializing RAM field correctly in guided mode.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp

    r85168 r85637  
    298298    retranslateUi();
    299299
     300    if (!field("type").canConvert<CGuestOSType>())
     301        return;
     302
     303    CGuestOSType type = field("type").value<CGuestOSType>();
     304    ULONG recommendedRam = type.GetRecommendedRAM();
     305    m_pBaseMemoryEditor->setValue(recommendedRam);
     306
     307
    300308    /* Prepare initial disk choice: */
    301     if (field("type").value<CGuestOSType>().GetRecommendedHDD() != 0)
     309    if (type.GetRecommendedHDD() != 0)
    302310    {
    303311        if (m_pDiskCreate)
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r85173 r85637  
    257257    retranslateUi();
    258258
     259    if (!field("type").canConvert<CGuestOSType>())
     260        return;
     261
    259262    /* Get recommended 'ram' field value: */
    260263    CGuestOSType type = field("type").value<CGuestOSType>();
     
    263266
    264267    /* Prepare initial disk choice: */
    265     if (field("type").value<CGuestOSType>().GetRecommendedHDD() != 0)
     268    if (type.GetRecommendedHDD() != 0)
    266269    {
    267270        if (m_pDiskCreate)
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