diff -Nurp VirtualBox-5.1.0.p13/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp VirtualBox-5.1.0.p14/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp --- VirtualBox-5.1.0.p13/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp 2016-07-12 17:54:10.000000000 +0300 +++ VirtualBox-5.1.0.p14/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp 2016-07-13 21:17:09.116398677 +0300 @@ -213,6 +213,10 @@ void UINameAndSystemEditor::prepareFamil /* Choose the 1st item to be the current: */ m_pComboFamily->setCurrentIndex(0); + /* Default to Linux */ + const int liIndex = m_pComboFamily->findData("Linux", TypeID); + if (liIndex != -1) + m_pComboFamily->setCurrentIndex(liIndex); /* And update the linked widgets accordingly: */ sltFamilyChanged(m_pComboFamily->currentIndex()); } @@ -317,6 +321,16 @@ void UINameAndSystemEditor::sltFamilyCha if (iTypeIndex != -1) m_pComboType->setCurrentIndex(iTypeIndex); } + /* Or select Mageia item for Linux family as default: */ + else if (strFamilyId == "Linux") + { + QString strDefaultID = "Mageia"; + if (ARCH_BITS == 64 && m_fSupportsHWVirtEx && m_fSupportsLongMode) + strDefaultID += "_64"; + const int iIndexMageia = m_pComboType->findData(strDefaultID, TypeID); + if (iIndexMageia != -1) + m_pComboType->setCurrentIndex(iIndexMageia); + } /* Or select Windows 7 item for Windows family as default: */ else if (strFamilyId == "Windows") { @@ -327,16 +341,6 @@ void UINameAndSystemEditor::sltFamilyCha if (iIndexWin7 != -1) m_pComboType->setCurrentIndex(iIndexWin7); } - /* 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"; - const int iIndexUbuntu = m_pComboType->findData(strDefaultID, TypeID); - if (iIndexUbuntu != -1) - m_pComboType->setCurrentIndex(iIndexUbuntu); - } /* Else simply select the first one present: */ else m_pComboType->setCurrentIndex(0);