Fix #1454411 [Bulk edit metadata date field pull down menu](https://bugs.launchpad.net/calibre/+bug/1454411)

This commit is contained in:
Kovid Goyal 2015-05-13 09:15:22 +05:30
parent 34a4c13284
commit c90d3738c0

View File

@ -352,6 +352,8 @@ class MetadataBulkDialog(ResizableDialog, Ui_MetadataBulkDialog):
self.pubdate.dateTimeChanged.connect(self.do_apply_pubdate)
self.adddate.setDateTime(QDateTime.currentDateTime())
self.adddate.setMinimumDateTime(UNDEFINED_QDATETIME)
self.adddate_cw = CalendarWidget(self.adddate)
self.adddate.setCalendarWidget(self.adddate_cw)
adddate_format = tweaks['gui_timestamp_display_format']
if adddate_format is not None:
self.adddate.setDisplayFormat(adddate_format)