Commit 128b8fdb authored by Clément Stenac's avatar Clément Stenac

Don't forget to reset slider position

parent 0cc8937f
......@@ -43,16 +43,12 @@ InputSlider::InputSlider( Qt::Orientation q,QWidget *_parent ) :
void InputSlider::setPosition( float pos, int a, int b )
{
if( pos == 0.0 )
{
setEnabled( false );
}
else
{
setEnabled( true );
mymove = true;
setValue( (int)(pos * 1000.0 ) );
mymove = false;
}
mymove = true;
setValue( (int)(pos * 1000.0 ) );
mymove = false;
}
void InputSlider::userDrag( int new_value )
......
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