1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 18:03:44 +01:00

Fix incorrect use of return

This commit is contained in:
Jonas Kvinge 2021-06-20 02:25:36 +02:00
parent cd37a40bab
commit bee30e572f

View File

@ -536,7 +536,10 @@ void Player::RestartOrPrevious() {
pause_time_ = QDateTime();
play_offset_nanosec_ = 0;
if (engine_->position_nanosec() < 8 * kNsecPerSec) return Previous();
if (engine_->position_nanosec() < 8 * kNsecPerSec) {
Previous();
return;
}
SeekTo(0);