Skip to content

Commit

Permalink
Fix rating preservation
Browse files Browse the repository at this point in the history
This is a bugfix for commit bb5a952 to prevent deletion of database-only ratings.

(cherry picked from commit c0e08d4)
  • Loading branch information
Marko Hauptvogel authored and hatstand committed Apr 19, 2016
1 parent 44d6b93 commit 2418b55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/song.cpp
Expand Up @@ -1165,4 +1165,7 @@ void Song::MergeUserSetData(const Song& other) {
set_lastplayed(other.lastplayed());
set_score(other.score());
set_art_manual(other.art_manual());
if (rating() == -1.0f) {
set_rating(other.rating());
}
}

0 comments on commit 2418b55

Please sign in to comment.