Fix regression that broke calibre starting when using a custom date column

This commit is contained in:
Kovid Goyal 2019-03-08 11:36:11 +05:30
parent 409aac87dd
commit e3c295f252
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -438,7 +438,7 @@ class CcDateDelegate(QStyledItemDelegate, UpdateEditorGeometry): # {{{
elif _format == 'iso':
self.format = internal_iso_format_string()
else:
self.format = format
self.format = _format
def displayText(self, val, locale):
d = qt_to_dt(val)