From 3ce8bd4d8f8a9b7fb7aea4de03e27ec727e2e48f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 27 Feb 2018 16:40:11 +0100 Subject: [PATCH] fix #3983 --- gui/qt/history_list.py | 2 ++ 1 file changed, 2 insertions(+) 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())