mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-12 09:26:06 +01:00
Fix rating preservation
This is a bugfix for commitbb5a952e
to prevent deletion of database-only ratings. (cherry picked from commitc0e08d42ed
)
This commit is contained in:
parent
44d6b930ac
commit
2418b559a8
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user