mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 12:53:37 +02:00
Fix edit meta info dialog clobbering time iformation in timestamp
This commit is contained in:
parent
4bd766bd49
commit
e81b241895
1 changed files with 3 additions and 1 deletions
|
|
@ -357,6 +357,7 @@ def __init__(self, window, row, db, accepted_callback=None, cancel_all=False):
|
|||
self.pubdate.setDate(QDate(pubdate.year, pubdate.month,
|
||||
pubdate.day))
|
||||
timestamp = db.timestamp(self.id, index_is_id=True)
|
||||
self.orig_timestamp = timestamp
|
||||
self.date.setDate(QDate(timestamp.year, timestamp.month,
|
||||
timestamp.day))
|
||||
|
||||
|
|
@ -656,7 +657,8 @@ def accept(self):
|
|||
self.db.set_pubdate(self.id, d)
|
||||
d = self.date.date()
|
||||
d = qt_to_dt(d)
|
||||
self.db.set_timestamp(self.id, d)
|
||||
if d.date() != self.orig_timestamp.date():
|
||||
self.db.set_timestamp(self.id, d)
|
||||
|
||||
if self.cover_changed:
|
||||
if self.cover_data is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue