From 16f77383fdd7fe8c02d8e9f96a52d340269bf7c2 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 20 Feb 2018 04:42:05 +0100 Subject: Fix songslider Got lost in the CollectionWidget-conversion. Advance it if we don't play a stream. --- playerwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playerwidget.cpp b/playerwidget.cpp index be4eb62..f6ad0d6 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -985,6 +985,9 @@ void PlayerWidget::slide(int value){ void PlayerWidget::setPosition(qint64 pos){ int curPos = pos / 1000; + if(mSongSlider->isEnabled()){ + mSongSlider->setValue(curPos); + } int minutes = curPos / 60; int seconds = curPos % 60; QString posString = QString("%1:%2").arg(minutes, 2, 10, QChar('0')).arg(seconds, 2, 10, QChar('0')); -- cgit v1.2.3-70-g09d2