From 34955bd0f5525c83edbd95fba5ab9a3d6c3ff537 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 12 Dec 2015 17:52:19 +0900 Subject: [PATCH] Show value if available --- gui/qt/transaction_dialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py index 4a657c8b1..ce601bf28 100644 --- a/gui/qt/transaction_dialog.py +++ b/gui/qt/transaction_dialog.py @@ -273,7 +273,8 @@ class TxDialog(QDialog): if addr is None: addr = _('unknown') cursor.insertText(addr, text_format(addr)) - cursor.insertText(format_amount(x['value']), ext) + if x.get('value'): + cursor.insertText(format_amount(x['value']), ext) cursor.insertBlock() vbox.addWidget(i_text)