VirtualBox

Ignore:
Timestamp:
Jul 20, 2021 1:18:32 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996. More fixes on th isComplete stuff

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

Legend:

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

    r90159 r90262  
    6666    , m_iMemorySize(0)
    6767    , m_iUnattendedInstallPageIndex(-1)
     68    , m_uMediumVariant(0)
     69    , m_uMediumSize(0)
    6870{
    6971#ifndef VBOX_WS_MAC
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r90259 r90262  
    362362            m_pDiskSelector->setCurrentIndex(0);
    363363    }
    364 
     364    /* Initialize the medium size widgets and the member parameter of the wizard: */
    365365    if (m_pSizeAndLocationGroup  && !m_userModifiedParameters.contains("MediumSize"))
     366    {
    366367        m_pSizeAndLocationGroup->setMediumSize(iRecommendedDiskSize);
     368        newVMWizardPropertySet(MediumSize, iRecommendedDiskSize);
     369    }
    367370
    368371    // if (m_pProductKeyLabel)
     
    596599    {
    597600        qulonglong uSize = pWizard->mediumSize();
    598         if( uSize >= m_uMediumSizeMin && uSize <= m_uMediumSizeMax)
     601        if( uSize < m_uMediumSizeMin || uSize > m_uMediumSizeMax)
    599602        {
    600603            m_pToolBox->setPageTitleIcon(ExpertToolboxItems_Disk,
     
    688691{
    689692    m_userModifiedParameters << "MediumSize";
    690     newVMWizardPropertySet(MemorySize, uSize);
     693    newVMWizardPropertySet(MediumSize, uSize);
    691694    emit completeChanged();
    692695}
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