mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-01 10:06:43 +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;
|
bool ok = false;
|
||||||
const qint64 time = value.toLongLong(&ok);
|
const qint64 time = value.toLongLong(&ok);
|
||||||
|
|
||||||
if (!ok || time == -1) {
|
if (!ok || time <= 0) {
|
||||||
return tr("Never");
|
return tr("Never");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user