From d354b601daa176927119789b223c45b79a8e9d11 Mon Sep 17 00:00:00 2001 From: thomasv Date: Tue, 17 Jan 2012 11:15:17 +0100 Subject: [PATCH] return on cancel --- client/gui.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/gui.py b/client/gui.py index f42f990c6..420fcb4df 100644 --- a/client/gui.py +++ b/client/gui.py @@ -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 )