electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit f305c01792fa56d71ea375d2be6259d74d60012e
parent 820d356325ca45977819123e6486e6183e9b97d5
Author: ThomasV <thomasv@gitorious>
Date:   Sat, 31 Jan 2015 20:41:28 +0100

accept bitcoin: URIs in payto field

Diffstat:
Mgui/qt/paytoedit.py | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gui/qt/paytoedit.py b/gui/qt/paytoedit.py @@ -96,20 +96,21 @@ class PayToEdit(ScanQRTextEdit): 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