Skip to content

Commit

Permalink
accept bitcoin: URIs in payto field
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasV committed Jan 31, 2015
1 parent 820d356 commit f305c01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gui/qt/paytoedit.py
Expand Up @@ -96,20 +96,21 @@ def check_text(self):
self.errors = []
if self.is_pr:
return

# filter out empty lines
lines = filter( lambda x: x, self.lines())
outputs = []
total = 0

self.payto_address = None

if len(lines) == 1:
data = lines[0]
if data.startswith("bitcoin:"):
self.scan_f(data)
return
try:
self.payto_address = self.parse_address(lines[0])
self.payto_address = self.parse_address(data)
except:
pass

if self.payto_address:
self.unlock_amount()
return
Expand Down

0 comments on commit f305c01

Please sign in to comment.