VirtualBox

Changeset 92037 in vbox for trunk


Ignore:
Timestamp:
Oct 25, 2021 2:14:13 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: Using 'min' for guessing Mint guests in UIWizardNewVMNameOSTypeCommon::guessOSTypeFromName leads to too many annoying mistakes for me, require the full 'mint'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp

    r91593 r92037  
    144144    { QRegExp("Tur.*64",                           Qt::CaseInsensitive), "Turbolinux_64" },
    145145    { QRegExp("Tur.*32",                           Qt::CaseInsensitive), "Turbolinux" },
    146     { QRegExp("(Ub)|(Min).*64",                    Qt::CaseInsensitive), "Ubuntu_64" },
    147     { QRegExp("(Ub)|(Min).*32",                    Qt::CaseInsensitive), "Ubuntu" },
     146    { QRegExp("((Ub)|(Mint)).*64",                 Qt::CaseInsensitive), "Ubuntu_64" },
     147    { QRegExp("((Ub)|(Mint)).*32",                 Qt::CaseInsensitive), "Ubuntu" },
    148148    { QRegExp("Xa.*64",                            Qt::CaseInsensitive), "Xandros_64" },
    149149    { QRegExp("Xa.*32",                            Qt::CaseInsensitive), "Xandros" },
     
    180180    bool fSupportsLongMode = host.GetProcessorFeature(KProcessorFeature_LongMode);
    181181
    182     /* Do not forget about achitecture bits, if not yet specified: */
     182    /* Append default architecture bit-count (64/32) if not already in the name: */
    183183    if (!strNewName.contains("32") && !strNewName.contains("64"))
    184184        strNewName += ARCH_BITS == 64 && fSupportsHWVirtEx && fSupportsLongMode ? "64" : "32";
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