--- VirtualBox-4.3.8/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp.0014 2014-02-26 01:08:58.000000000 +0800 +++ VirtualBox-4.3.8/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp 2014-02-26 08:04:28.814033104 +0800 @@ -104,6 +104,9 @@ m_pFamilyCombo->setItemData(i, families[i].GetFamilyId(), TypeID); } m_pFamilyCombo->setCurrentIndex(0); + int liIndex = m_pFamilyCombo->findData("Linux", TypeID); + if (liIndex != -1) + m_pFamilyCombo->setCurrentIndex(liIndex); sltFamilyChanged(m_pFamilyCombo->currentIndex()); /* Setup connections: */ @@ -193,6 +196,13 @@ if (iTypeIndex != -1) m_pTypeCombo->setCurrentIndex(iTypeIndex); } + /* Or select Mageia item for Linux family as default: */ + else if (strFamilyId == "Linux") + { + int iIndexMageia = m_pTypeCombo->findData("Mageia", TypeID); + if (iIndexMageia != -1) + m_pTypeCombo->setCurrentIndex(iIndexMageia); + } /* Or select WinXP item for Windows family as default: */ else if (strFamilyId == "Windows") { @@ -203,16 +213,6 @@ if (iIndexWinXP != -1) m_pTypeCombo->setCurrentIndex(iIndexWinXP); } - /* Or select Ubuntu item for Linux family as default: */ - else if (strFamilyId == "Linux") - { - QString strDefaultID = "Ubuntu"; - if (ARCH_BITS == 64 && m_fSupportsHWVirtEx && m_fSupportsLongMode) - strDefaultID += "_64"; - int iIndexUbuntu = m_pTypeCombo->findData(strDefaultID, TypeID); - if (iIndexUbuntu != -1) - m_pTypeCombo->setCurrentIndex(iIndexUbuntu); - } /* Else simply select the first one present: */ else m_pTypeCombo->setCurrentIndex(0);