VirtualBox

Changeset 101974 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 8, 2023 1:24:05 PM (13 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10543: VM Settings / System pages: Load amount of boot-devices on per-platform basis; The list of devices is hardcoded for now, will be fixed separately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.cpp

    r101498 r101974  
    4444#include "COMEnums.h"
    4545#include "CMachine.h"
     46#include "CPlatform.h"
    4647#include "CPlatformProperties.h"
    4748
     
    333334                                                                    << KDeviceType_HardDisk
    334335                                                                    << KDeviceType_Network;
    335     const CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(KPlatformArchitecture_x86);
     336    CPlatform comPlatform = comMachine.GetPlatform();
     337    const KPlatformArchitecture comArch = comPlatform.GetArchitecture();
     338    const CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(comArch);
    336339    const int iPossibleBootListSize = qMin((ULONG)4, comProperties.GetMaxBootPosition());
    337340    possibleBootItems.resize(iPossibleBootListSize);
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