mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d14486089e
commit
8650823670
@ -423,8 +423,6 @@ class CcDateDelegate(QStyledItemDelegate, UpdateEditorGeometry): # {{{
|
||||
elif check_key_modifier(Qt.ShiftModifier + Qt.ControlModifier):
|
||||
val = now()
|
||||
else:
|
||||
# db col is not named for the field, but for the table number. To get it,
|
||||
# gui column -> column label -> table number -> db column
|
||||
val = index.data(Qt.EditRole)
|
||||
if is_date_undefined(val):
|
||||
val = now()
|
||||
|
Loading…
x
Reference in New Issue
Block a user