LastPlayedItemDelegate: Show blank for zero or invalid time
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user