From c2a1015abae036d0103536c94a085af9da0a123d Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 1 May 2012 17:23:36 +0200 Subject: [PATCH] fix: do not ask amount if the action is cancelled --- electrum4a.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/electrum4a.py b/electrum4a.py index 1698cc96..513267b2 100755 --- a/electrum4a.py +++ b/electrum4a.py @@ -606,9 +606,10 @@ def main_loop(): elif out == "receive": global receive_addr receive_addr = select_from_addresses() - amount = modal_input('Amount', 'Amount you want receive. ', '', "numberDecimal") - if amount: - receive_addr = 'bitcoin:%s?amount=%s'%(receive_addr, amount) + if receive_addr: + amount = modal_input('Amount', 'Amount you want receive. ', '', "numberDecimal") + if amount: + receive_addr = 'bitcoin:%s?amount=%s'%(receive_addr, amount) if not receive_addr: out = None