Fix rating preservation

This is a bugfix for commit bb5a952e to prevent deletion of database-only ratings.

(cherry picked from commit c0e08d42ed)
This commit is contained in:
Marko Hauptvogel 2016-04-17 19:23:36 -07:00 committed by John Maguire
parent 44d6b930ac
commit 2418b559a8
1 changed files with 3 additions and 0 deletions

View File

@ -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());
}
}