VirtualBox

Changeset 95166 in vbox for trunk/src


Ignore:
Timestamp:
Jun 1, 2022 6:58:02 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151663
Message:

FE/Qt: bugref:9515.

  • Disabling os type/family selectors in guided mode if we can detect those from the ISO,
  • Improving info label text a bit.
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

    r94660 r95166  
    716716void UIWizardNewVM::setISOFilePath(const QString &strISOFilePath)
    717717{
    718     QFileInfo isoFileInfo(strISOFilePath);
    719     if (!isoFileInfo.exists())
    720         return;
    721 
    722718    AssertReturnVoid(!m_comUnattended.isNull());
    723719    m_comUnattended.SetIsoPath(strISOFilePath);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp

    r95165 r95166  
    528528    QString strMessage;
    529529    if (m_pNameAndSystemEditor->ISOImagePath().isEmpty())
    530         strMessage = UIWizardNewVM::tr("No ISO selected, the guest OS will need to be installed manually.");
     530        strMessage = UIWizardNewVM::tr("No ISO image is selected, the guest OS will need to be installed manually.");
    531531    else if (pWizard->detectedOSTypeId().isEmpty())
    532         strMessage = UIWizardNewVM::tr("OS type cannot be determined from the selected ISO, the guest OS will need to be installed manually.");
     532        strMessage = UIWizardNewVM::tr("OS type cannot be determined from the selected ISO, "
     533                                       "the guest OS will need to be installed manually.");
    533534    else if (!pWizard->detectedOSTypeId().isEmpty())
    534535    {
     536        QString strType = uiCommon().vmGuestOSTypeDescription(pWizard->detectedOSTypeId());
    535537        if (!pWizard->isUnattendedInstallSupported())
    536             strMessage = UIWizardNewVM::tr("Detected OS type cannot be installed unattendedly, the guest OS will need to be installed manually.");
     538            strMessage = QString("%1 %2. %3").arg(UIWizardNewVM::tr("Detected OS type: ")).arg(strType)
     539                                                 .arg(UIWizardNewVM::tr("This OS type cannot be installed unattendedly. The install "
     540                                                                        "needs to be started manually."));
    537541        else if (pWizard->skipUnattendedInstall())
    538542            strMessage = UIWizardNewVM::tr("You have selected to skip unattended guest OS install, the guest OS will need to be installed manually.");
    539543        else
    540             strMessage = UIWizardNewVM::tr("After closing this wizard the guest OS system will start installing from the selected ISO.");
     544            strMessage = QString("%1 %2. %3").arg(UIWizardNewVM::tr("Detected OS type: ")).arg(strType)
     545                                                 .arg(UIWizardNewVM::tr("This OS type can be installed unattendedly. The install "
     546                                                                        "will start after this wizard is closed."));
    541547    }
    542548
     
    603609    setEditionSelectorEnabled();
    604610    updateInfoLabel();
     611
     612    /* Disable OS type selector(s) to prevent user from changing guest OS type manually: */
     613    if (m_pNameAndSystemEditor)
     614        m_pNameAndSystemEditor->setOSTypeStuffEnabled(pWizard->detectedOSTypeId().isEmpty());
     615
    605616    emit completeChanged();
    606617}
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