diff --git a/gui/qt/history_list.py b/gui/qt/history_list.py index c5364cf2a..9edbd61d4 100644 --- a/gui/qt/history_list.py +++ b/gui/qt/history_list.py @@ -136,6 +136,8 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop): vbox.addLayout(Buttons(OkButton(d), CancelButton(d))) d.setLayout(vbox) if d.exec_(): + if d.date is None: + return None button.setText(d.date.toString()) return time.mktime(d.date.toPyDate().timetuple())