mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 10:12:34 -04:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user