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,6 +606,7 @@ def main_loop():
elif out == "receive":
global receive_addr
receive_addr = select_from_addresses()
if receive_addr:
amount = modal_input('Amount', 'Amount you want receive. ', '', "numberDecimal")
if amount:
receive_addr = 'bitcoin:%s?amount=%s'%(receive_addr, amount)