diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2017-09-04 16:06:35 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2017-09-04 16:06:35 +0000 |
commit | 4a44ed36ae99da4c4258328a1d06575ee2dde86a (patch) | |
tree | 89d96ef0f4fd42190535a3606d79fea455a13be5 | |
parent | 40b67299f5a7026c8e0711caadd7c7a58f01a2f5 (diff) | |
download | VirtualBox-svn-4a44ed36ae99da4c4258328a1d06575ee2dde86a.tar.gz |
FE/Qt: bugref:7820: VM settings / Audio page: Proper widget availability status.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@68618 cfe28804-0f27-0410-a406-dd0f0b0b656f
-rw-r--r-- | src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp b/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp index 3385940fa47..bbc8e12c404 100644 --- a/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp +++ b/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp @@ -204,13 +204,14 @@ void UIMachineSettingsAudio::polishPage() { /* Polish audio page availability: */ m_pCheckBoxAudio->setEnabled(isMachineOffline()); - m_pLabelAudioDriver->setEnabled(isMachineOffline() && m_pCheckBoxAudio->isChecked()); - m_pComboAudioDriver->setEnabled(isMachineOffline() && m_pCheckBoxAudio->isChecked()); - m_pLabelAudioController->setEnabled(isMachineOffline() && m_pCheckBoxAudio->isChecked()); - m_pComboAudioController->setEnabled(isMachineOffline() && m_pCheckBoxAudio->isChecked()); - m_pLabelAudioExtended->setEnabled(isMachineInValidMode() && m_pCheckBoxAudio->isChecked()); - m_pCheckBoxAudioOutput->setEnabled(isMachineInValidMode() && m_pCheckBoxAudio->isChecked()); - m_pCheckBoxAudioInput->setEnabled(isMachineInValidMode() && m_pCheckBoxAudio->isChecked()); + m_pLabelAudioDriver->setEnabled(isMachineOffline()); + m_pComboAudioDriver->setEnabled(isMachineOffline()); + m_pLabelAudioController->setEnabled(isMachineOffline()); + m_pComboAudioController->setEnabled(isMachineOffline()); + m_pLabelAudioExtended->setEnabled(isMachineInValidMode()); + m_pCheckBoxAudioOutput->setEnabled(isMachineInValidMode()); + m_pCheckBoxAudioInput->setEnabled(isMachineInValidMode()); + m_pContainerAudioSubOptions->setEnabled(m_pCheckBoxAudio->isChecked()); } void UIMachineSettingsAudio::prepare() |