VirtualBox

Changeset 68507 in vbox for trunk


Ignore:
Timestamp:
Aug 22, 2017 2:14:52 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:7820: Allow to change corresponding settings in any valid machine state, not just in 'powered off' (s.a. r117637).

File:
1 edited

Legend:

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

    r68489 r68507  
    204204{
    205205    /* Polish audio page availability: */
    206     m_pContainerAudioOptions->setEnabled(isMachineOffline());
    207     m_pContainerAudioSubOptions->setEnabled(m_pCheckBoxAudio->isChecked());
     206    m_pCheckBoxAudio->setEnabled(isMachineOffline());
     207    m_pLabelAudioDriver->setEnabled(isMachineOffline() && m_pCheckBoxAudio->isChecked());
     208    m_pComboAudioDriver->setEnabled(isMachineOffline() && m_pCheckBoxAudio->isChecked());
     209    m_pLabelAudioController->setEnabled(isMachineOffline() && m_pCheckBoxAudio->isChecked());
     210    m_pComboAudioController->setEnabled(isMachineOffline() && m_pCheckBoxAudio->isChecked());
     211    m_pLabelAudioExtended->setEnabled(isMachineInValidMode() && m_pCheckBoxAudio->isChecked());
     212    m_pCheckBoxAudioOutput->setEnabled(isMachineInValidMode() && m_pCheckBoxAudio->isChecked());
     213    m_pCheckBoxAudioInput->setEnabled(isMachineInValidMode() && m_pCheckBoxAudio->isChecked());
    208214}
    209215
     
    309315            }
    310316            /* Save whether audio output is enabled: */
    311             if (fSuccess && isMachineOffline() && newAudioData.m_fAudioOutputEnabled != oldAudioData.m_fAudioOutputEnabled)
     317            if (fSuccess && isMachineInValidMode() && newAudioData.m_fAudioOutputEnabled != oldAudioData.m_fAudioOutputEnabled)
    312318            {
    313319                comAdapter.SetEnabledOut(newAudioData.m_fAudioOutputEnabled);
     
    315321            }
    316322            /* Save whether audio input is enabled: */
    317             if (fSuccess && isMachineOffline() && newAudioData.m_fAudioInputEnabled != oldAudioData.m_fAudioInputEnabled)
     323            if (fSuccess && isMachineInValidMode() && newAudioData.m_fAudioInputEnabled != oldAudioData.m_fAudioInputEnabled)
    318324            {
    319325                comAdapter.SetEnabledIn(newAudioData.m_fAudioInputEnabled);
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