taccept bitcoin: URIs in payto field - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit f305c01792fa56d71ea375d2be6259d74d60012e DIR parent 820d356325ca45977819123e6486e6183e9b97d5 HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 31 Jan 2015 20:41:28 +0100 accept bitcoin: URIs in payto field Diffstat: M gui/qt/paytoedit.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- DIR diff --git a/gui/qt/paytoedit.py b/gui/qt/paytoedit.py t@@ -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