simplified pretty time delegate

This commit is contained in:
Jakub Trllo 2022-03-21 11:21:45 +01:00
parent 02e4f239a9
commit 2a9a490105

View file

@ -287,9 +287,6 @@ class PrettyTimeDelegate(QtWidgets.QStyledItemDelegate):
""" """
def displayText(self, value, locale): def displayText(self, value, locale):
if value is not None:
if value is None: return pretty_timestamp(value)
# Ignore None value return None
return
return pretty_timestamp(value)