VirtualBox

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


Ignore:
Timestamp:
Sep 22, 2023 4:38:35 PM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10523. Select Oracle Linux by default when OS family is Linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp

    r101242 r101244  
    448448    else
    449449    {
     450        /* Populate variant combo: */
     451        /* If family is Linux then select Oracle Linux as variant: */
     452        int iOracleIndex = -1;
    450453        foreach (const QString &strVariant, variantList)
    451454        {
    452455            m_pComboVariant->addItem(strVariant);
    453         }
     456            if (strVariant == "Oracle Linux")
     457                iOracleIndex = m_pComboVariant->count() - 1;
     458        }
     459        if (iOracleIndex != -1)
     460            m_pComboVariant->setCurrentIndex(iOracleIndex);
     461
    454462        populateTypeCombo(pGuestOSTypeManager->getTypeListForVariant(m_pComboVariant->currentText()));
    455463    }
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