VirtualBox

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


Ignore:
Timestamp:
Jan 22, 2021 1:22:18 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9515. Fixes

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

Legend:

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

    r87355 r87366  
    184184    if (!m_pGAISOFilePathSelector)
    185185        return false;
     186    /* GA ISO selector should not be empty since GA install check box is checked at this point: */
    186187    const QString &strPath = m_pGAISOFilePathSelector->path();
    187188    if (strPath.isNull() || strPath.isEmpty())
    188         return true;
     189        return false;
    189190    QFileInfo fileInfo(strPath);
    190191    if (!fileInfo.exists() || !fileInfo.isReadable())
     
    195196void UIWizardNewVMPage2::markWidgets() const
    196197{
    197     if (m_pGAISOFilePathSelector)
     198    if (m_pGAISOFilePathSelector && m_pGAInstallCheckBox->isChecked())
    198199        m_pGAISOFilePathSelector->mark(!checkGAISOFile());
    199200}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r87364 r87366  
    313313{
    314314    UIWizardNewVMPage1::markWidgets();
    315 
    316     if (m_pGAISOFilePathSelector)
    317         m_pGAISOFilePathSelector->mark(isUnattendedEnabled() && !checkGAISOFile());
     315    UIWizardNewVMPage2::markWidgets();
    318316}
    319317
     
    447445        }
    448446        /* Check the GA installation medium: */
    449         if (!checkGAISOFile())
     447        if (m_pGAInstallCheckBox->isChecked() && !checkGAISOFile())
    450448        {
    451449            m_pToolBox->setPageTitleIcon(ExpertToolboxItems_Unattended,
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