]> git.sesse.net Git - vlc/commitdiff
Qt4 - Fix the "sound slider moves at first time, even If I didn't click it" bug.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 7 Feb 2008 19:31:32 +0000 (19:31 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 7 Feb 2008 19:31:32 +0000 (19:31 +0000)
modules/gui/qt4/util/input_slider.cpp

index 8caa18ee5cdc4168fedc70c61deec8b427345f01..0200ffb8a068c57136f39463412eb83291f8b414 100644 (file)
@@ -122,6 +122,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard )
     f_step = ( _i_step * 100 ) / AOUT_VOLUME_MAX ;
     setRange( SOUNDMIN, b_hard ? (2 * SOUNDMAX) : SOUNDMAX  );
     setMouseTracking( true );
+    b_sliding = false;
 
     pixOutside = QPixmap( ":/pixmaps/volume-slider-outside.png" );