1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-20 21:00:46 +01:00

Fix this properly

This commit is contained in:
Jonas Kvinge 2019-01-06 17:41:56 +01:00
parent 7e9668584b
commit 8e210d8e01

View File

@ -143,10 +143,7 @@ void DeviceItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op
QVariant song_count = index.data(DeviceManager::Role_SongCount);
if (song_count.isValid()) {
int count = song_count.toInt();
if (count == 1) // TODO: Fix this properly
status_text = tr("%1 song").arg(count);
else
status_text = tr("%1 songs").arg(count);
status_text = tr("%1 song%2").arg(count).arg(count == 1 ? "" : "s");
}
else {
status_text = index.data(DeviceManager::Role_MountPath).toString();