From 0759676c98fd71fd933a5f1b7de914b02c879592 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Fri, 8 Jan 2010 00:02:15 +0100 Subject: [PATCH] Qt: update widget initialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi Denis-Courmont --- modules/gui/qt4/components/controller_widget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp index 7aac19d41e..831c20e03c 100644 --- a/modules/gui/qt4/components/controller_widget.cpp +++ b/modules/gui/qt4/components/controller_widget.cpp @@ -111,11 +111,9 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf, layout->addWidget( volumeSlider, 0, Qt::AlignBottom ); /* Set the volume from the config */ - volumeSlider->setValue( qRound( ( (qreal)config_GetInt( p_intf, "volume" ) ) * - VOLUME_MAX / (AOUT_VOLUME_MAX/2) ) ); - + libUpdateVolume(); /* Force the update at build time in order to have a muted icon if needed */ - userUpdateVolume( volumeSlider->value() ); + updateMuteStatus(); /* Volume control connection */ CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) ); -- 2.11.4.GIT