DateItemDelegate: Show blank for zero or invalid time

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

View File

@ -329,7 +329,7 @@ QString DateItemDelegate::displayText(const QVariant &value, const QLocale &loca
bool ok = false;
qint64 time = value.toLongLong(&ok);
if (!ok || time == -1) {
if (!ok || time <= 0) {
return QString();
}