URI: 
       tpaytoedit: fix is_max - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 7e871923f4454eb6c7e149bf1252bcba4a80994c
   DIR parent 0b3fe8df831572afb98d3f468ae910105c10a658
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sat, 31 Dec 2016 17:10:45 +0100
       
       paytoedit: fix is_max
       
       Diffstat:
         M gui/qt/paytoedit.py                 |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/gui/qt/paytoedit.py b/gui/qt/paytoedit.py
       t@@ -132,6 +132,7 @@ class PayToEdit(ScanQRTextEdit):
                        self.win.lock_amount(False)
                        return
        
       +        is_max = False
                for i, line in enumerate(lines):
                    try:
                        _type, to_address, amount = self.parse_address_and_amount(line)
       t@@ -141,10 +142,11 @@ class PayToEdit(ScanQRTextEdit):
        
                    outputs.append((_type, to_address, amount))
                    if amount == '!':
       -                self.win.is_max = True
       +                is_max = True
                    else:
                        total += amount
        
       +        self.win.is_max = is_max
                self.outputs = outputs
                self.payto_address = None