return on cancel

This commit is contained in:
thomasv 2012-01-17 11:15:17 +01:00
parent f695de9c3f
commit d354b601da
1 changed files with 6 additions and 1 deletions

View File

@ -760,7 +760,12 @@ class BitcoinGUI:
self.show_message( "invalid fee")
return
password = password_dialog() if self.wallet.use_encryption else None
if self.wallet.use_encryption:
password = password_dialog()
if not password:
return
else:
password = None
try:
tx = self.wallet.mktx( to_address, amount, label, password, fee )