From 25f424a8d8328b7e869b06a9bfa4a891580a8960 Mon Sep 17 00:00:00 2001 From: Maran Date: Fri, 14 Dec 2012 12:14:38 +0100 Subject: [PATCH] Fix for slush's problem, perhaps --- lib/history_widget.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/history_widget.py b/lib/history_widget.py index ce1f2cbe..f04d1e7e 100644 --- a/lib/history_widget.py +++ b/lib/history_widget.py @@ -13,6 +13,12 @@ class HistoryWidget(QTreeWidget): self.clear() def append(self, address, amount, date): + if address is None: + address = "Unknown" + if amount is None: + amount = "Unknown" + if date is None: + date = "Unknown" item = QTreeWidgetItem([amount, address, date]) self.insertTopLevelItem(0, item)