forked from Silverfish/proton-bridge
I/E Fix printing zero time in error report
This commit is contained in:
committed by
Michal Horejsek
parent
9af5769510
commit
7e0a9f398c
@ -25,6 +25,8 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
### Changed
|
### Changed
|
||||||
* Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8
|
* Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8
|
||||||
* GODT-785 Clear separation of different message IDs in integration tests.
|
* 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.
|
* Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8.
|
||||||
* GODT-374 Allow to send calendar update multiple times.
|
* GODT-374 Allow to send calendar update multiple times.
|
||||||
|
|||||||
@ -72,6 +72,9 @@ func (e *ErrorListModel) data(index *core.QModelIndex, role int) *core.QVariant
|
|||||||
case MailSubject:
|
case MailSubject:
|
||||||
return qtcommon.NewQVariantString(r.Subject)
|
return qtcommon.NewQVariantString(r.Subject)
|
||||||
case MailDate:
|
case MailDate:
|
||||||
|
if r.Time.IsZero() {
|
||||||
|
return qtcommon.NewQVariantString("Unavailable")
|
||||||
|
}
|
||||||
return qtcommon.NewQVariantString(r.Time.String())
|
return qtcommon.NewQVariantString(r.Time.String())
|
||||||
case MailFrom:
|
case MailFrom:
|
||||||
return qtcommon.NewQVariantString(r.From)
|
return qtcommon.NewQVariantString(r.From)
|
||||||
|
|||||||
Reference in New Issue
Block a user