|
@ -96,20 +96,21 @@ class PayToEdit(ScanQRTextEdit): |
|
|
self.errors = [] |
|
|
self.errors = [] |
|
|
if self.is_pr: |
|
|
if self.is_pr: |
|
|
return |
|
|
return |
|
|
|
|
|
|
|
|
# filter out empty lines |
|
|
# filter out empty lines |
|
|
lines = filter( lambda x: x, self.lines()) |
|
|
lines = filter( lambda x: x, self.lines()) |
|
|
outputs = [] |
|
|
outputs = [] |
|
|
total = 0 |
|
|
total = 0 |
|
|
|
|
|
|
|
|
self.payto_address = None |
|
|
self.payto_address = None |
|
|
|
|
|
|
|
|
if len(lines) == 1: |
|
|
if len(lines) == 1: |
|
|
|
|
|
data = lines[0] |
|
|
|
|
|
if data.startswith("bitcoin:"): |
|
|
|
|
|
self.scan_f(data) |
|
|
|
|
|
return |
|
|
try: |
|
|
try: |
|
|
self.payto_address = self.parse_address(lines[0]) |
|
|
self.payto_address = self.parse_address(data) |
|
|
except: |
|
|
except: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
if self.payto_address: |
|
|
if self.payto_address: |
|
|
self.unlock_amount() |
|
|
self.unlock_amount() |
|
|
return |
|
|
return |
|
|