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) ...@@ -676,7 +676,7 @@ void SPrefsPanel::updateAudioOptions( int number)
QString value = qobject_cast<QComboBox *>(optionWidgets[audioOutCoB]) QString value = qobject_cast<QComboBox *>(optionWidgets[audioOutCoB])
->itemData( number ).toString(); ->itemData( number ).toString();
#ifdef WIN32 #ifdef WIN32
optionWidgets[directxW]->setVisible( ( value == "directx" ) ); optionWidgets[directxW]->setVisible( ( value == "aout_directx" ) );
#else #else
/* optionWidgets[ossW] can be NULL */ /* optionWidgets[ossW] can be NULL */
if( optionWidgets[ossW] ) if( optionWidgets[ossW] )
...@@ -686,8 +686,8 @@ void SPrefsPanel::updateAudioOptions( int number) ...@@ -686,8 +686,8 @@ void SPrefsPanel::updateAudioOptions( int number)
optionWidgets[alsaW]->setVisible( ( value == "alsa" ) ); optionWidgets[alsaW]->setVisible( ( value == "alsa" ) );
#endif #endif
optionWidgets[fileW]->setVisible( ( value == "aout_file" ) ); optionWidgets[fileW]->setVisible( ( value == "aout_file" ) );
optionWidgets[spdifChB]->setVisible( ( value != "aout_file" optionWidgets[spdifChB]->setVisible( ( value == "alsa" || value == "oss" || value == "auhal" ||
&& value != "dummy" ) ); 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