LastPlayedItemDelegate: Show blank for zero or invalid time

This commit is contained in:
Jonas Kvinge 2023-01-20 23:45:33 +01:00
parent b69b3228be
commit c78d73d727
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}