URI: 
       tShow amount of inputs too. - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit f3a7d3f2bff502e26e53cb63a1175da86d3bb08d
   DIR parent 680c9c888a4620527ef85eee6c0daac2f26c07dd
  HTML Author: Neil Booth <kyuupichan@gmail.com>
       Date:   Sat, 12 Dec 2015 09:41:31 +0900
       
       Show amount of inputs too.
       
       Diffstat:
         M gui/qt/transaction_dialog.py        |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py
       t@@ -249,6 +249,9 @@ class TxDialog(QDialog):
                        return chg if self.wallet.is_change(addr) else rec
                    return ext
        
       +        def format_amount(amt):
       +            return self.parent.format_amount(amt, whitespaces = True)
       +
                i_text = QTextEdit()
                i_text.setFont(QFont(MONOSPACE_FONT))
                i_text.setReadOnly(True)
       t@@ -270,6 +273,7 @@ class TxDialog(QDialog):
                        if addr is None:
                            addr = _('unknown')
                        cursor.insertText(addr, text_format(addr))
       +                cursor.insertText(format_amount(x['value']), ext)
                    cursor.insertBlock()
        
                vbox.addWidget(i_text)
       t@@ -283,7 +287,7 @@ class TxDialog(QDialog):
                    cursor.insertText(addr, text_format(addr))
                    if v is not None:
                        cursor.insertText('\t', ext)
       -                cursor.insertText(self.parent.format_amount(v, whitespaces = True), ext)
       +                cursor.insertText(format_amount(v), ext)
                    cursor.insertBlock()
                vbox.addWidget(o_text)