Changeset 101382 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
- Timestamp:
- Oct 6, 2023 10:02:08 AM (19 months ago)
- svn:sync-xref-src-repo-rev:
- 159386
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r101265 r101382 54 54 #include "CRecordingSettings.h" 55 55 #include "CVRDEServer.h" 56 #include <VBox/com/VirtualBox.h> /* For GUEST_OS_ID_STR_X86 and friends. */ 56 57 57 58 … … 1021 1022 bool UIMachineSettingsDisplay::shouldWeWarnAboutLowVRAM() 1022 1023 { 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; 1026 1040 } 1027 1041
Note:
See TracChangeset
for help on using the changeset viewer.