VirtualBox

Changeset 80868 in vbox


Ignore:
Timestamp:
Sep 17, 2019 3:53:22 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9563: VM settings / Audio page and VM Details pane: Allow to change audio driver while VM is in Saved state as well.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp

    r80817 r80868  
    179179    m_pTextPane->setAnchorRoleRestricted("#mount", cal == ConfigurationAccessLevel_Null);
    180180    m_pTextPane->setAnchorRoleRestricted("#attach", cal != ConfigurationAccessLevel_Full);
    181     m_pTextPane->setAnchorRoleRestricted("#audio_host_driver_type", cal != ConfigurationAccessLevel_Full);
     181    m_pTextPane->setAnchorRoleRestricted("#audio_host_driver_type",    cal != ConfigurationAccessLevel_Full
     182                                                                    && cal != ConfigurationAccessLevel_Partial_Saved);
    182183    m_pTextPane->setAnchorRoleRestricted("#audio_controller_type", cal != ConfigurationAccessLevel_Full);
    183184    m_pTextPane->setAnchorRoleRestricted("#network_attachment_type", cal == ConfigurationAccessLevel_Null);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp

    r80081 r80868  
    169169    /* Polish audio page availability: */
    170170    m_pCheckBoxAudio->setEnabled(isMachineOffline());
    171     m_pAudioHostDriverLabel->setEnabled(isMachineOffline());
    172     m_pAudioHostDriverEditor->setEnabled(isMachineOffline());
     171    m_pAudioHostDriverLabel->setEnabled(isMachineOffline() || isMachineSaved());
     172    m_pAudioHostDriverEditor->setEnabled(isMachineOffline() || isMachineSaved());
    173173    m_pAudioControllerLabel->setEnabled(isMachineOffline());
    174174    m_pAudioControllerEditor->setEnabled(isMachineOffline());
     
    246246            }
    247247            /* Save audio driver type: */
    248             if (fSuccess && isMachineOffline() && newAudioData.m_audioDriverType != oldAudioData.m_audioDriverType)
     248            if (fSuccess && (isMachineOffline() || isMachineSaved()) && newAudioData.m_audioDriverType != oldAudioData.m_audioDriverType)
    249249            {
    250250                comAdapter.SetAudioDriver(newAudioData.m_audioDriverType);
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