]> git.sesse.net Git - vlc/commitdiff
Qt: SoundSlider: always emit valuechange on slider move (fix #4658)
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 10 Apr 2011 11:23:26 +0000 (13:23 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 10 Apr 2011 13:09:04 +0000 (15:09 +0200)
modules/gui/qt4/components/controller_widget.cpp

index 38ff00c9f7033430a9e5b482745794ab4c0c3a6b..e77cdec08bd482def44cf5132bfae9218a75f973 100644 (file)
@@ -112,8 +112,8 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
     updateMuteStatus();
 
     /* Volume control connection */
-    CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) );
-    CONNECT( volumeSlider, sliderMoved( int ), this, userUpdateVolume( int ) );
+    volumeSlider->setTracking( true );
+    CONNECT( volumeSlider, valueChanged( int ), this, userUpdateVolume( int ) );
     CONNECT( THEMIM, volumeChanged( void ), this, libUpdateVolume( void ) );
     CONNECT( THEMIM, soundMuteChanged( void ), this, updateMuteStatus( void ) );
 }
@@ -151,6 +151,7 @@ void SoundWidget::userUpdateVolume( int i_sliderVolume )
     playlist_t *p_playlist = pl_Get( p_intf );
     int i_res = i_sliderVolume  * (AOUT_VOLUME_MAX / 2) / VOLUME_MAX;
     aout_VolumeSet( p_playlist, i_res );
+    refreshLabels();
 }
 
 /* libvlc changed value event slot */