From 56b05f1dc843c5b0d13ef9b561db4334608b1762 Mon Sep 17 00:00:00 2001 From: Tyler Rhodes Date: Tue, 14 Jun 2011 12:21:53 +0000 Subject: [PATCH] Disable seeking while stopped. Fixes issue 1987. --- src/widgets/trackslider.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/trackslider.cpp b/src/widgets/trackslider.cpp index 0f1ebb217..d915d5176 100644 --- a/src/widgets/trackslider.cpp +++ b/src/widgets/trackslider.cpp @@ -120,7 +120,8 @@ void TrackSlider::SetCanSeek(bool can_seek) { } void TrackSlider::Seek(int gap) { - ui_->slider->setValue(ui_->slider->value()+gap); + if (ui_->slider->isEnabled()) + ui_->slider->setValue(ui_->slider->value()+gap); } void TrackSlider::ValueMaybeChanged(int value) {