[vlc-devel] commit: Qt: fix a sticking slider issue. (Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Jan 10 00:18:22 CET 2010


vlc-1.0-bugfix | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jan 10 00:17:23 2010 +0100| [01619fbe2a702380c430b2b41d1eadcc76bb27cd] | committer: Jean-Baptiste Kempf 

Qt: fix a sticking slider issue.

Manual backport of the idea of d14bb18c4a794844b52c746a02b721f852855ccb
In fact, that should fix #2889 and #3105

> http://git.videolan.org/gitweb.cgi/vlc-1.0-bugfix.git/?a=commit;h=01619fbe2a702380c430b2b41d1eadcc76bb27cd
---

 modules/gui/qt4/util/input_slider.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index 4140c38..e78a190 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -56,7 +56,10 @@ InputSlider::InputSlider( Qt::Orientation q, QWidget *_parent ) :
 void InputSlider::setPosition( float pos, int a, int b )
 {
     if( pos == -1.0 )
+    {
         setEnabled( false );
+        b_isSliding = false;
+    }
     else
         setEnabled( true );
 




More information about the vlc-devel mailing list