I/E Fix printing zero time in error report

This commit is contained in:
Pavel Škoda 2020-09-23 17:01:14 +02:00 committed by Michal Horejsek
parent 9af5769510
commit 7e0a9f398c
2 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,8 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
### Changed
* Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8
* GODT-785 Clear separation of different message IDs in integration tests.
### Changed
* GODT-741 Import-Export shows "Unable to parse time" notice instead of zero time in error report window.
* Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8.
* GODT-374 Allow to send calendar update multiple times.

View File

@ -72,6 +72,9 @@ func (e *ErrorListModel) data(index *core.QModelIndex, role int) *core.QVariant
case MailSubject:
return qtcommon.NewQVariantString(r.Subject)
case MailDate:
if r.Time.IsZero() {
return qtcommon.NewQVariantString("Unavailable")
}
return qtcommon.NewQVariantString(r.Time.String())
case MailFrom:
return qtcommon.NewQVariantString(r.From)