VirtualBox

Changeset 73178 in vbox


Ignore:
Timestamp:
Jul 17, 2018 1:46:57 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9206: Forgot something very important in r123718.

File:
1 edited

Legend:

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

    r73130 r73178  
    213213
    214214    /* Acquire family ID: */
    215     const QString strFamilyId = m_pComboFamily->itemData(iIndex, TypeID).toString();
     215    m_strFamilyId = m_pComboFamily->itemData(iIndex, TypeID).toString();
    216216
    217217    /* Populate combo-box with OS types related to currently selected family id: */
    218     foreach (const UIGuestOSType &guiType, m_types.value(strFamilyId))
     218    foreach (const UIGuestOSType &guiType, m_types.value(m_strFamilyId))
    219219    {
    220220        /* Skip 64bit OS types if hardware virtualization or long mode is not supported: */
     
    227227
    228228    /* Select the most recently chosen item: */
    229     if (m_currentIds.contains(strFamilyId))
    230     {
    231         const QString strTypeId = m_currentIds.value(strFamilyId);
     229    if (m_currentIds.contains(m_strFamilyId))
     230    {
     231        const QString strTypeId = m_currentIds.value(m_strFamilyId);
    232232        const int iTypeIndex = m_pComboType->findData(strTypeId, TypeID);
    233233        if (iTypeIndex != -1)
     
    235235    }
    236236    /* Or select Windows 7 item for Windows family as default: */
    237     else if (strFamilyId == "Windows")
     237    else if (m_strFamilyId == "Windows")
    238238    {
    239239        QString strDefaultID = "Windows7";
     
    245245    }
    246246    /* Or select Oracle Linux item for Linux family as default: */
    247     else if (strFamilyId == "Linux")
     247    else if (m_strFamilyId == "Linux")
    248248    {
    249249        QString strDefaultID = "Oracle";
     
    268268{
    269269    /* Acquire type/family IDs: */
    270     const QString strTypeId = m_pComboType->itemData(iIndex, TypeID).toString();
    271     const QString strFamilyId = m_pComboFamily->itemData(m_pComboFamily->currentIndex(), TypeID).toString();
     270    m_strTypeId = m_pComboType->itemData(iIndex, TypeID).toString();
    272271
    273272    /* Update selected type pixmap: */
    274     m_pIconType->setPixmap(vboxGlobal().vmGuestOSTypePixmapDefault(strTypeId));
     273    m_pIconType->setPixmap(vboxGlobal().vmGuestOSTypePixmapDefault(m_strTypeId));
    275274
    276275    /* Save the most recently used item: */
    277     m_currentIds[strFamilyId] = strTypeId;
     276    m_currentIds[m_strFamilyId] = m_strTypeId;
    278277
    279278    /* Notifies listeners about OS type change: */
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