commit 878e3f80ad859a66f5a4569fb88dd35c4b50ab64
parent a8ed934a7f4c450df1b0714964ca07139390387f
Author: ThomasV <thomasv@gitorious>
Date: Tue, 21 Jul 2015 16:35:16 +0200
fix expiration date display
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -1437,7 +1437,8 @@ class ElectrumWindow(QMainWindow):
key = pr.get_id()
status = self.invoices.get_status(key)
requestor = pr.get_requestor()
- date_str = util.format_time(pr.get_expiration_date())
+ exp = pr.get_expiration_date()
+ date_str = util.format_time(exp) if exp else _('Never')
item = QTreeWidgetItem( [ date_str, requestor, pr.memo, self.format_amount(pr.get_amount(), whitespaces=True), pr_tooltips.get(status,'')] )
item.setIcon(4, QIcon(pr_icons.get(status)))
item.setData(0, Qt.UserRole, key)