VirtualBox

Changeset 102160 in vbox


Ignore:
Timestamp:
Nov 20, 2023 5:24:27 PM (12 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: UIAdvancedSettingsDialog: Make sure both x86 and ARM platform types defined when appropriate; Previously we were passing through only ARM platform type, keeping the value underfined for x86 since it was always default; Now we need to be a bit more determined.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings
Files:
2 edited

Legend:

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

    r102087 r102160  
    959959        /* Create validator: */
    960960        UISettingsPageValidator *pValidator = new UISettingsPageValidator(this, pSettingsPage);
    961         connect(pValidator, &UISettingsPageValidator::sigValidityChanged, this, &UIAdvancedSettingsDialog::sltHandleValidityChange);
     961        connect(pValidator, &UISettingsPageValidator::sigValidityChanged,
     962                this, &UIAdvancedSettingsDialog::sltHandleValidityChange);
    962963        pSettingsPage->setValidator(pValidator);
    963964        m_pWarningPane->registerValidator(pValidator);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.cpp

    r102140 r102160  
    783783            switch (enmArch)
    784784            {
    785                 /* For x86 we no need the flag at all, removing if present: */
    786                 case KPlatformArchitecture_x86: optFlags.remove("arch"); break;
    787                 /* For rest of platforms we need the flag: */
    788                 default: optFlags["arch"] = QVariant::fromValue(enmArch); break;
     785                /* For x86/ARM we'll set the flag: */
     786                case KPlatformArchitecture_x86:
     787                case KPlatformArchitecture_ARM:
     788                    optFlags["arch"] = QVariant::fromValue(enmArch);
     789                    break;
     790                /* For rest of platforms (+None) we'll remove it: */
     791                default:
     792                    optFlags.remove("arch");
     793                    break;
    789794            }
    790795            setOptionalFlags(optFlags);
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