[vlc-devel] commit: qt4: Fix wrong hidding FS controller caused by disabling input slider, fixes #1874 (Lukas Durfina )

git version control git at videolan.org
Fri Aug 22 02:04:16 CEST 2008


vlc | branch: master | Lukas Durfina <lukas.durfina at gmail.com> | Thu Aug 21 21:27:19 2008 +0200| [2ba2327b726a8f08c39ecde4a5ab7212b6bd509a] | committer: Jean-Baptiste Kempf 

qt4: Fix wrong hidding FS controller caused by disabling input slider, fixes #1874

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/input_manager.cpp     |    2 +-
 modules/gui/qt4/util/input_slider.cpp |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 89a3816..87f7299 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -114,7 +114,7 @@ void InputManager::delInput()
         i_input_id = 0;
         old_name   = "";
         artUrl     = "";
-        emit positionUpdated( 0.0, 0 ,0 );
+        emit positionUpdated( -1.0, 0 ,0 );
         emit statusChanged( END_S );
         emit nameChanged( "" );
         emit artChanged( "" );
diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index cb85822..c94c632 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -48,14 +48,14 @@ InputSlider::InputSlider( Qt::Orientation q,QWidget *_parent ) :
     setSingleStep( 2 );
     setPageStep( 10 );
     setTracking( true );
-    setPosition( 0.0, 0, 0 );
+    setPosition( -1.0, 0, 0 );
     secstotimestr( psz_length, 0 );
     CONNECT( this, valueChanged(int), this, userDrag( int ) );
 }
 
 void InputSlider::setPosition( float pos, int a, int b )
 {
-    if( pos == 0.0 )
+    if( pos == -1.0 )
         setEnabled( false );
     else
         setEnabled( true );




More information about the vlc-devel mailing list