From d1f6f12f786548efb392b30f31c0fad49f9dd0a2 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 6 Mar 2020 21:13:45 +0100 Subject: [PATCH] AudioPane: Do not enable Dolby Pro Logic II quality slider if DPLII is disabled --- Source/Core/DolphinQt/Settings/AudioPane.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/Settings/AudioPane.cpp b/Source/Core/DolphinQt/Settings/AudioPane.cpp index a43e845265..b7187a8f6d 100644 --- a/Source/Core/DolphinQt/Settings/AudioPane.cpp +++ b/Source/Core/DolphinQt/Settings/AudioPane.cpp @@ -337,7 +337,8 @@ void AudioPane::OnDspChanged() m_dolby_pro_logic->setEnabled(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked()); - EnableDolbyQualityWidgets(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked()); + EnableDolbyQualityWidgets(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked() && + m_dolby_pro_logic->isChecked()); } void AudioPane::OnBackendChanged() @@ -346,7 +347,8 @@ void AudioPane::OnBackendChanged() m_dolby_pro_logic->setEnabled(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked()); - EnableDolbyQualityWidgets(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked()); + EnableDolbyQualityWidgets(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked() && + m_dolby_pro_logic->isChecked()); if (m_latency_control_supported) { m_latency_label->setEnabled(AudioCommon::SupportsLatencyControl(backend)); @@ -382,7 +384,7 @@ void AudioPane::OnEmulationStateChanged(bool running) if (AudioCommon::SupportsDPL2Decoder(SConfig::GetInstance().sBackend) && !m_dsp_hle->isChecked()) { m_dolby_pro_logic->setEnabled(!running); - EnableDolbyQualityWidgets(!running); + EnableDolbyQualityWidgets(!running && m_dolby_pro_logic->isChecked()); } if (m_latency_control_supported) {