]> git.sesse.net Git - vlc/commitdiff
Qt: update widget initialization
authorFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 7 Jan 2010 23:02:15 +0000 (00:02 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jan 2010 13:43:16 +0000 (15:43 +0200)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/gui/qt4/components/controller_widget.cpp

index 7aac19d41e1b786038ae760d3f3678e177daa272..831c20e03c773d64e478a2d2615b229cef75ffbb 100644 (file)
@@ -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 ) );