VirtualBox

Ignore:
Timestamp:
Aug 14, 2015 7:56:57 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: New VM wizard:

  • Changed guessed OS type for "Win .." from Windows XP to Windows 7.
  • Always use Windows XP 32-bit as default for XP, even on 64-bit hosts. See comment for details.
Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r57293 r57340  
    205205        if (ARCH_BITS == 64 && m_fSupportsHWVirtEx && m_fSupportsLongMode)
    206206            strDefaultID += "_64";
    207         int iIndexWinXP = m_pTypeCombo->findData(strDefaultID, TypeID);
    208         if (iIndexWinXP != -1)
    209             m_pTypeCombo->setCurrentIndex(iIndexWinXP);
     207        int iIndexWin7 = m_pTypeCombo->findData(strDefaultID, TypeID);
     208        if (iIndexWin7 != -1)
     209            m_pTypeCombo->setCurrentIndex(iIndexWin7);
    210210    }
    211211    /* Or select Ubuntu item for Linux family as default: */
     
    226226
    227227    /* Unlock the signals of m_pTypeCombo: */
    228     m_pTypeCombo->blockSignals (false);
     228    m_pTypeCombo->blockSignals(false);
    229229}
    230230
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp

    r57160 r57340  
    5858    { QRegExp(  "Wi.*Me",                         Qt::CaseInsensitive), "WindowsMe" },
    5959    { QRegExp( "(Wi.*NT)|(NT4)",                  Qt::CaseInsensitive), "WindowsNT4" },
    60     { QRegExp("((Wi.*XP)|(\\bXP\\b)).*64",        Qt::CaseInsensitive), "WindowsXP_64" },
    61     { QRegExp("((Wi.*XP)|(\\bXP\\b)).*32",        Qt::CaseInsensitive), "WindowsXP" },
     60    /* Note: Do not automatically set WindowsXP_64 on 64-bit hosts, as Windows XP 64-bit
     61     *       is extremely rare -- most users never heard of it even. So always default to 32-bit. */
     62    { QRegExp("((Wi.*XP)|(XP)).*",                Qt::CaseInsensitive), "WindowsXP" },
    6263    { QRegExp("((Wi.*2003)|(W2K3)|(Win2K3)).*64", Qt::CaseInsensitive), "Windows2003_64" },
    6364    { QRegExp("((Wi.*2003)|(W2K3)|(Win2K3)).*32", Qt::CaseInsensitive), "Windows2003" },
     
    7778    { QRegExp( "(Wi.*10.*32)|(W10.*32)",          Qt::CaseInsensitive), "Windows10" },
    7879    { QRegExp(  "Wi.*3.*1",                       Qt::CaseInsensitive), "Windows31" },
    79     { QRegExp(  "Wi.*64",                         Qt::CaseInsensitive), "WindowsXP_64" },
    80     { QRegExp(  "Wi.*32",                         Qt::CaseInsensitive), "WindowsXP" },
     80    /* Set Windows 7 as default for "Windows". */
     81    { QRegExp(  "Wi.*64",                         Qt::CaseInsensitive), "Windows7_64" },
     82    { QRegExp(  "Wi.*32",                         Qt::CaseInsensitive), "Windows7" },
    8183
    8284    /* Solaris: */
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