Commit 2ba2327b authored by Lukas Durfina's avatar Lukas Durfina Committed by Jean-Baptiste Kempf

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

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d669ba50
......@@ -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( "" );
......
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment