From ea99a041d33192dfb1b626929cbed53bde8250ae Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 10 Feb 2019 15:46:45 +0530 Subject: [PATCH] Fix clicking on an empty published field in the book list to edit it setting the initial date to Jan 2000 instead of today's date --- src/calibre/gui2/library/delegates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/delegates.py b/src/calibre/gui2/library/delegates.py index b81592a8cd..46eaf29add 100644 --- a/src/calibre/gui2/library/delegates.py +++ b/src/calibre/gui2/library/delegates.py @@ -300,7 +300,7 @@ class PubDateDelegate(QStyledItemDelegate, UpdateEditorGeometry): # {{{ elif check_key_modifier(Qt.ShiftModifier + Qt.ControlModifier): val = now() elif is_date_undefined(val): - val = QDate(2000, 1, 1) + val = QDate.currentDate() if isinstance(val, QDateTime): val = val.date() editor.setDate(val)