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

Qt4 - Preferences, lastfm fix.

parent 56e6a84d
...@@ -253,17 +253,20 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -253,17 +253,20 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
updateAudioOptions( ui.outputModule->currentIndex() ); updateAudioOptions( ui.outputModule->currentIndex() );
/* LastFM */ /* LastFM */
CONFIG_GENERIC( "lastfm-username", String, ui.lastfm_user_label, if( module_Exists( p_intf, "Audioscrobbler" ) )
lastfm_user_edit ); {
CONFIG_GENERIC( "lastfm-password", String, ui.lastfm_pass_label, CONFIG_GENERIC( "lastfm-username", String, ui.lastfm_user_label,
lastfm_pass_edit ); lastfm_user_edit );
CONFIG_GENERIC( "lastfm-password", String, ui.lastfm_pass_label,
if( config_ExistIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ) ) lastfm_pass_edit );
ui.lastfm->setCheckState( Qt::Checked );
else if( config_ExistIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ) )
ui.lastfm->setCheckState( Qt::Unchecked ); ui.lastfm->setCheckState( Qt::Checked );
CONNECT( ui.lastfm, stateChanged( int ), this , else
lastfm_Changed( int ) ); ui.lastfm->setCheckState( Qt::Unchecked );
CONNECT( ui.lastfm, stateChanged( int ), this ,
lastfm_Changed( int ) );
}
/* Normalizer */ /* Normalizer */
......
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