Stop every divider from being '0'.
This commit is contained in:
parent
134743bd29
commit
5c4118dff5
|
@ -251,12 +251,12 @@ QString Library::DividerDisplayText(GroupBy type, const QString& key) const {
|
||||||
return "0-9";
|
return "0-9";
|
||||||
// fallthrough
|
// fallthrough
|
||||||
|
|
||||||
case GroupBy_Year:
|
|
||||||
return QString::number(key.toInt()); // To remove leading 0s
|
|
||||||
|
|
||||||
case GroupBy_YearAlbum:
|
case GroupBy_YearAlbum:
|
||||||
return key;
|
return key;
|
||||||
|
|
||||||
|
case GroupBy_Year:
|
||||||
|
return QString::number(key.toInt()); // To remove leading 0s
|
||||||
|
|
||||||
case GroupBy_None:
|
case GroupBy_None:
|
||||||
default:
|
default:
|
||||||
Q_ASSERT(0);
|
Q_ASSERT(0);
|
||||||
|
|
Loading…
Reference in New Issue