Commit e2f633e3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix 'pausing does move the slider to 0'.

parent 29477d27
......@@ -965,7 +965,7 @@ void ControlsWidget::enableInput( bool enable )
{
slowerButton->setEnabled( enable );
slider->setEnabled( enable );
slider->setSliderPosition ( 0 );
if( !enable ) slider->setSliderPosition ( -1 );
fasterButton->setEnabled( enable );
/* Advanced Buttons too */
......
......@@ -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_sliding = 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