Commit bc8ee31f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Fix audio options in SPrefs

SPDIF and directx device
parent 2d6fe3dd
......@@ -676,7 +676,7 @@ void SPrefsPanel::updateAudioOptions( int number)
QString value = qobject_cast<QComboBox *>(optionWidgets[audioOutCoB])
->itemData( number ).toString();
#ifdef WIN32
optionWidgets[directxW]->setVisible( ( value == "directx" ) );
optionWidgets[directxW]->setVisible( ( value == "aout_directx" ) );
#else
/* optionWidgets[ossW] can be NULL */
if( optionWidgets[ossW] )
......@@ -686,8 +686,8 @@ void SPrefsPanel::updateAudioOptions( int number)
optionWidgets[alsaW]->setVisible( ( value == "alsa" ) );
#endif
optionWidgets[fileW]->setVisible( ( value == "aout_file" ) );
optionWidgets[spdifChB]->setVisible( ( value != "aout_file"
&& value != "dummy" ) );
optionWidgets[spdifChB]->setVisible( ( value == "alsa" || value == "oss" || value == "auhal" ||
value == "aout_directx" || value == "waveout" ) );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment