From: Francois Cartegnie Date: Thu, 7 Jan 2010 23:02:15 +0000 (+0100) Subject: Qt: update widget initialization X-Git-Tag: 1.1.0-ff~1301 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0759676c98fd71fd933a5f1b7de914b02c879592;p=vlc Qt: update widget initialization Signed-off-by: RĂ©mi Denis-Courmont --- 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 ) );