diff options
author | Arno <arno@disconnect.de> | 2018-02-20 04:42:05 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-02-20 04:42:05 +0100 |
commit | 16f77383fdd7fe8c02d8e9f96a52d340269bf7c2 (patch) | |
tree | a9c5093736a06995a7f52aaac98d97df8fd67bcc | |
parent | 113f13e9d82e0d4a1c23e86877ca623a5a287d28 (diff) | |
download | BeetPlayer-16f77383fdd7fe8c02d8e9f96a52d340269bf7c2.tar.gz BeetPlayer-16f77383fdd7fe8c02d8e9f96a52d340269bf7c2.tar.bz2 BeetPlayer-16f77383fdd7fe8c02d8e9f96a52d340269bf7c2.zip |
Fix songslider
Got lost in the CollectionWidget-conversion. Advance it if we don't play
a stream.
-rw-r--r-- | playerwidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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')); |