VirtualBox

Ignore:
Timestamp:
May 24, 2018 12:03:50 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt In new vm "expert" wizard initialize the ram spin box correctly

File:
1 edited

Legend:

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

    r72314 r72321  
    6868                    m_pRamSlider->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    6969                    m_pRamSlider->setOrientation(Qt::Horizontal);
    70                     m_pRamSlider->setValue(m_pNameAndSystemEditor->type().GetRecommendedRAM());
    7170                }
    7271                m_pRamEditor = new QSpinBox(m_pMemoryCnt);
     
    258257    /* Translate page: */
    259258    retranslateUi();
     259
     260    /* Get recommended 'ram' field value: */
     261    CGuestOSType type = field("type").value<CGuestOSType>();
     262    ULONG recommendedRam = type.GetRecommendedRAM();
     263    m_pRamSlider->setValue(recommendedRam);
     264    m_pRamEditor->setValue(recommendedRam);
     265
    260266}
    261267
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