VirtualBox

Changeset 90230 in vbox


Ignore:
Timestamp:
Jul 16, 2021 11:56:03 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145768
Message:

FE/Qt: bugref:9996. Some fixes

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.h

    r90208 r90230  
    104104    QLabel *m_pGAISOPathLabel;
    105105    UIFilePathSelector *m_pGAISOFilePathSelector;
    106 
    107106};
    108107
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r90225 r90230  
    123123        UIWizardNewVMNameOSTypePage::guessOSTypeFromName(m_pNameAndSystemEditor, strNewName);
    124124    UIWizardNewVMNameOSTypePage::composeMachineFilePath(m_pNameAndSystemEditor, qobject_cast<UIWizardNewVM*>(wizard()));
    125     updateVirtualMediumPathFromMachinePathName();
     125    if (!m_userModifiedParameters.contains("MediumPath"))
     126        updateVirtualMediumPathFromMachinePathName();
    126127    emit completeChanged();
    127128}
     
    131132    Q_UNUSED(strNewPath);
    132133    UIWizardNewVMNameOSTypePage::composeMachineFilePath(m_pNameAndSystemEditor, qobject_cast<UIWizardNewVM*>(wizard()));
    133     updateVirtualMediumPathFromMachinePathName();
     134    if (!m_userModifiedParameters.contains("MediumPath"))
     135        updateVirtualMediumPathFromMachinePathName();
    134136}
    135137
     
    169171void UIWizardNewVMPageExpert::sltGAISOPathChanged(const QString &strPath)
    170172{
    171     Q_UNUSED(strPath);
    172     //emit completeChanged();
     173    m_userModifiedParameters << "GuestAdditionsISOPath";
     174    newVMWizardPropertySet(GuestAdditionsISOPath, strPath);
     175    emit completeChanged();
    173176}
    174177
     
    215218{
    216219    Q_UNUSED(fEnabled);
    217     // disableEnableGAWidgets(fEnabled);
    218     // emit completeChanged();
     220    emit completeChanged();
    219221}
    220222
     
    245247                this, &UIWizardNewVMPageExpert::sltEFIEnabledChanged);
    246248    }
    247     // /* Connections for username, password, and hostname: */
     249    /* Connections for username, password, and hostname, etc: */
     250    if (m_pGAInstallationISOContainer)
     251    {
     252        connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::sigPathChanged,
     253                this, &UIWizardNewVMPageExpert::sltGAISOPathChanged);
     254        connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::toggled,
     255                this, &UIWizardNewVMPageExpert::sltInstallGACheckBoxToggle);
     256
     257    }
    248258    // if (m_pUserNamePasswordGroupBox)
    249259    //     connect(m_pUserNamePasswordGroupBox, &UIUserNamePasswordEditor::sigSomeTextChanged,
    250260    //             this, &UIWizardNewVMPageExpert::completeChanged);
    251     // if (m_pGAISOFilePathSelector)
    252     //     connect(m_pGAISOFilePathSelector, &UIFilePathSelector::pathChanged,
    253     //             this, &UIWizardNewVMPageExpert::sltGAISOPathChanged);
    254 
    255     // if (m_pGAInstallationISOContainer)
    256     //     connect(m_pGAInstallationISOContainer, &QGroupBox::toggled,
    257     //             this, &UIWizardNewVMPageExpert::sltInstallGACheckBoxToggle);
     261
    258262
    259263    // if (m_pFormatButtonGroup)
     
    363367    if (m_pFormatButtonGroup)
    364368        newVMWizardPropertySet(MediumFormat, m_pFormatButtonGroup->mediumFormat());
    365     updateVirtualMediumPathFromMachinePathName();
     369    if (!m_userModifiedParameters.contains("MediumPath"))
     370        updateVirtualMediumPathFromMachinePathName();
    366371
    367372    // disableEnableUnattendedRelatedWidgets(isUnattendedEnabled());
     
    601606    //     m_pGAInstallationISOContainer->setEnabled(fEnabled);
    602607    // disableEnableProductKeyWidgets(isProductKeyWidgetEnabled());
    603     // disableEnableGAWidgets(isGAInstallEnabled());
    604608}
    605609
     
    684688    }
    685689    QString strExtension = UIWizardNewVMDiskPage::defaultExtension(pWizard->mediumFormat());
    686 
    687 
    688690    if (m_pSizeAndLocationGroup)
    689691    {
    690         QString strMediumPath =
     692        QString strMediumFilePath =
    691693            UIWizardNewVMDiskPage::absoluteFilePath(UIWizardNewVMDiskPage::toFileName(strDiskFileName,
    692694                                                                                      strExtension), strMediumPath);
    693         m_pSizeAndLocationGroup->setMediumPath(strMediumPath);
     695        m_pSizeAndLocationGroup->setMediumPath(strMediumFilePath);
    694696    }
    695697}
Note: See TracChangeset for help on using the changeset viewer.

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