VirtualBox

Ignore:
Timestamp:
Aug 20, 2024 6:17:15 PM (8 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164450
Message:

FE/Qt: Machine settings / System page: Make sure boot-order table is enabled only if EFI is disabled; Boot-order table is used for BIOS firmware only after all.

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

Legend:

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

    r105273 r105741  
    55
    66/*
    7  * Copyright (C) 2008-2023 Oracle and/or its affiliates.
     7 * Copyright (C) 2008-2024 Oracle and/or its affiliates.
    88 *
    99 * This file is part of VirtualBox base platform packages, as
     
    622622}
    623623
     624void UIMachineSettingsSystem::sltHandleFirmwareTypeChanged()
     625{
     626    /// @todo move all the System page editors to new encapsulated UISystemSettingsEditor class,
     627    ///       cause we are hiding logic in separate editors, not pages, this is the 1st bit of logic.
     628    m_pEditorBootOrder->setEnabled(!m_pEditorMotherboardFeatures->isEnabledEfi());
     629}
     630
    624631void UIMachineSettingsSystem::handleFilterChange()
    625632{
     
    657664    m_pEditorPointingHID->setEnabled(isMachineOffline());
    658665    m_pEditorMotherboardFeatures->setEnabled(isMachineOffline());
     666    sltHandleFirmwareTypeChanged();
    659667
    660668    /* Polish 'Processor' availability: */
     
    890898    connect(m_pEditorMotherboardFeatures, &UIMotherboardFeaturesEditor::sigChangedIoApic,
    891899            this, &UIMachineSettingsSystem::revalidate);
     900    connect(m_pEditorMotherboardFeatures, &UIMotherboardFeaturesEditor::sigChangedEfi,
     901            this, &UIMachineSettingsSystem::sltHandleFirmwareTypeChanged);
    892902
    893903    /* Configure 'Processor' connections: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h

    r105273 r105741  
    55
    66/*
    7  * Copyright (C) 2008-2023 Oracle and/or its affiliates.
     7 * Copyright (C) 2008-2024 Oracle and/or its affiliates.
    88 *
    99 * This file is part of VirtualBox base platform packages, as
     
    124124    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    125125
     126    /** Handles firmware type change. */
     127    void sltHandleFirmwareTypeChanged();
     128
    126129private:
    127130
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