From 7d45ebdb61b94784664c82deb2dc63cf07eca85a Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Wed, 12 Aug 2009 00:40:24 +0200 Subject: [PATCH] GUI: sprefs_audio hide lastfm when not checked --- modules/gui/qt4/components/simple_preferences.cpp | 4 ++-- modules/gui/qt4/ui/sprefs_audio.ui | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index e167796f1a..076bd69d4b 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -347,10 +347,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, else ui.lastfm->setChecked( false ); - ui.lastfm_zone->setEnabled( ui.lastfm->isChecked() ); + ui.lastfm_zone->setVisible( ui.lastfm->isChecked() ); CONNECT( ui.lastfm, toggled( bool ), - ui.lastfm_zone, setEnabled( bool ) ); + ui.lastfm_zone, setVisible( bool ) ); CONNECT( ui.lastfm, stateChanged( int ), this, lastfm_Changed( int ) ); } diff --git a/modules/gui/qt4/ui/sprefs_audio.ui b/modules/gui/qt4/ui/sprefs_audio.ui index bdcb070356..b48cb1956e 100644 --- a/modules/gui/qt4/ui/sprefs_audio.ui +++ b/modules/gui/qt4/ui/sprefs_audio.ui @@ -11,6 +11,12 @@ 619 + + + 0 + 0 + + Form -- 2.39.2