tShow value if available - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit 34955bd0f5525c83edbd95fba5ab9a3d6c3ff537 (DIR) parent b8eea5f56eaf82618efc60c599da36312bd3fbcc (HTM) Author: Neil Booth <kyuupichan@gmail.com> Date: Sat, 12 Dec 2015 17:52:19 +0900 Show value if available Diffstat: M gui/qt/transaction_dialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- (DIR) diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py t@@ -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)