From 147e1cbd702046a076fbb9070769d669dab44797 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Thu, 13 Jun 2013 10:26:21 +0200 Subject: [PATCH] Fix [Bug 1190463] [NEW] Bulk Edit - Clear Custom Date Columns. Problem arose because Qt doesn't emit a changed signal if you set the widgets value to what it currently contains. --- src/calibre/gui2/custom_column_widgets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/custom_column_widgets.py b/src/calibre/gui2/custom_column_widgets.py index 51e02b2cde..4c5b1cce27 100644 --- a/src/calibre/gui2/custom_column_widgets.py +++ b/src/calibre/gui2/custom_column_widgets.py @@ -156,6 +156,7 @@ class DateTimeEdit(QDateTimeEdit): self.setDateTime(now()) def set_to_clear(self): + self.setDateTime(now()) self.setDateTime(UNDEFINED_QDATETIME) def keyPressEvent(self, ev):