VirtualBox

Ignore:
Timestamp:
Oct 6, 2023 10:02:08 AM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159386
Message:

FE/Qt: Marking up some more guest OS ID strings. bugref:10384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r101265 r101382  
    5454#include "CRecordingSettings.h"
    5555#include "CVRDEServer.h"
     56#include <VBox/com/VirtualBox.h> /* For GUEST_OS_ID_STR_X86 and friends. */
    5657
    5758
     
    10211022bool UIMachineSettingsDisplay::shouldWeWarnAboutLowVRAM()
    10221023{
    1023     QStringList excludingOSList = QStringList()
    1024         << "Other" << "DOS" << "Netware" << "L4" << "QNX" << "JRockitVE";
    1025     return !excludingOSList.contains(m_strGuestOSTypeId);
     1024    static const char *s_apszExcludes[] =
     1025    {
     1026        GUEST_OS_ID_STR_X86("Other"),
     1027        GUEST_OS_ID_STR_X64("Other"),
     1028        GUEST_OS_ID_STR_A64("Other"),
     1029        GUEST_OS_ID_STR_X64("VBoxBS"),
     1030        GUEST_OS_ID_STR_X86("DOS"),
     1031        GUEST_OS_ID_STR_X86("Netware"),
     1032        GUEST_OS_ID_STR_X86("L4"),
     1033        GUEST_OS_ID_STR_X86("QNX"),
     1034        GUEST_OS_ID_STR_X86("JRockitVE"),
     1035    };
     1036    for (size_t idx = 0; idx < RT_ELEMENTS(s_apszExcludes); idx++)
     1037        if (m_strGuestOSTypeId == s_apszExcludes[idx])
     1038            return false;
     1039    return true;
    10261040}
    10271041
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette