mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-20 21:00:46 +01:00
LastPlayedItemDelegate: Show blank for zero or invalid time
This commit is contained in:
parent
b69b3228be
commit
c78d73d727
@ -342,7 +342,7 @@ QString LastPlayedItemDelegate::displayText(const QVariant &value, const QLocale
|
||||
bool ok = false;
|
||||
const qint64 time = value.toLongLong(&ok);
|
||||
|
||||
if (!ok || time == -1) {
|
||||
if (!ok || time <= 0) {
|
||||
return tr("Never");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user