Commit 0759676c authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Rémi Denis-Courmont

Qt: update widget initialization

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 4704ae3f
...@@ -111,11 +111,9 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf, ...@@ -111,11 +111,9 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
layout->addWidget( volumeSlider, 0, Qt::AlignBottom ); layout->addWidget( volumeSlider, 0, Qt::AlignBottom );
/* Set the volume from the config */ /* Set the volume from the config */
volumeSlider->setValue( qRound( ( (qreal)config_GetInt( p_intf, "volume" ) ) * libUpdateVolume();
VOLUME_MAX / (AOUT_VOLUME_MAX/2) ) );
/* Force the update at build time in order to have a muted icon if needed */ /* Force the update at build time in order to have a muted icon if needed */
userUpdateVolume( volumeSlider->value() ); updateMuteStatus();
/* Volume control connection */ /* Volume control connection */
CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) ); CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) );
......
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