1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 02:14:21 +01:00

Bound song scores properly. Thanks arnaud.bienner

This commit is contained in:
David Sansome 2010-11-21 15:38:26 +00:00
parent 626c75cd45
commit 0a5d286798

View File

@ -223,7 +223,7 @@ class Song {
void set_playcount(int v) { d->playcount_ = v; }
void set_skipcount(int v) { d->skipcount_ = v; }
void set_lastplayed(int v) { d->lastplayed_ = v; }
void set_score(int v) { d->score_ = v; }
void set_score(int v) { d->score_ = qBound(0, v, 100); }
// Setters that should only be used by tests
void set_filename(const QString& v) { d->filename_ = v; }