- Timestamp:
- Aug 22, 2017 2:14:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp
r68489 r68507 204 204 { 205 205 /* 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()); 208 214 } 209 215 … … 309 315 } 310 316 /* Save whether audio output is enabled: */ 311 if (fSuccess && isMachine Offline() && newAudioData.m_fAudioOutputEnabled != oldAudioData.m_fAudioOutputEnabled)317 if (fSuccess && isMachineInValidMode() && newAudioData.m_fAudioOutputEnabled != oldAudioData.m_fAudioOutputEnabled) 312 318 { 313 319 comAdapter.SetEnabledOut(newAudioData.m_fAudioOutputEnabled); … … 315 321 } 316 322 /* Save whether audio input is enabled: */ 317 if (fSuccess && isMachine Offline() && newAudioData.m_fAudioInputEnabled != oldAudioData.m_fAudioInputEnabled)323 if (fSuccess && isMachineInValidMode() && newAudioData.m_fAudioInputEnabled != oldAudioData.m_fAudioInputEnabled) 318 324 { 319 325 comAdapter.SetEnabledIn(newAudioData.m_fAudioInputEnabled);
Note:
See TracChangeset
for help on using the changeset viewer.