fix: do not ask amount if the action is cancelled

This commit is contained in:
ThomasV 2012-05-01 17:23:36 +02:00
parent 973e5af925
commit c2a1015aba
1 changed files with 4 additions and 3 deletions

View File

@ -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