From 8e210d8e01f1f9702932601efdb86f9c6e8fe212 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 6 Jan 2019 17:41:56 +0100 Subject: [PATCH] Fix this properly --- src/device/deviceview.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/device/deviceview.cpp b/src/device/deviceview.cpp index 178570e7d..9cc8b7bd8 100644 --- a/src/device/deviceview.cpp +++ b/src/device/deviceview.cpp @@ -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();