vlc | branch: master | Francois Cartegnie <[email protected]> | Sun Apr 10 
13:23:26 2011 +0200| [f8fe27ad55fe9bf053fbd68c4defe1e96bc12e92] | committer: 
Francois Cartegnie

Qt: SoundSlider: always emit valuechange on slider move (fix #4658)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8fe27ad55fe9bf053fbd68c4defe1e96bc12e92
---

 modules/gui/qt4/components/controller_widget.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/controller_widget.cpp 
b/modules/gui/qt4/components/controller_widget.cpp
index 38ff00c..e77cdec 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -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 */

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to